Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8271387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:49:37+00:00 2026-06-08T06:49:37+00:00

I have written an XML code, where I want the EditText to be expanded

  • 0

I have written an XML code, where I want the EditText to be expanded to fit the parent width. After spending so much time, I can not find a way to expand the EditText.

Here is my XML:

<?xml version="1.0" encoding="UTF-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent">

    <TableLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:orientation="vertical">

    <TableRow 
        android:layout_marginLeft="10dp" 
        android:layout_marginBottom="15dip">        
        <TextView
            android:text="Comment"
            android:layout_width="match_parent"
            android:textStyle="bold"
            android:padding="3dip" />      
    </TableRow>

    <TableRow 
        android:layout_marginLeft="10dp" 
        android:layout_marginBottom="15dip">        
       <EditText 
            android:id="@+id/EditText02"
            android:layout_height="wrap_content"
            android:lines="5" 
            android:gravity="top|left" 
            android:inputType="textMultiLine"
            android:scrollHorizontally="false" 
            android:minWidth="10.0dip"
            android:maxWidth="5.0dip"/>
    </TableRow>

    <TableRow 
        android:layout_marginLeft="10dp" 
        android:layout_marginBottom="15dip"
        android:gravity="center">           
       <Button 
            android:id="@+id/cancel"
            android:text="Next" />       
   </TableRow>
</TableLayout>
</LinearLayout>

what i have made wrong here. Please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:49:39+00:00Added an answer on June 8, 2026 at 6:49 am

    Add an extra colomn of TextView in every row.

    This code may help you.

    <?xml version="1.0" encoding="UTF-8"?>
    
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent">
    
    <TableLayout 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent"
        android:stretchColumns="1"
        android:orientation="vertical">
    
        <TableRow 
            android:layout_width="fill_parent"
            android:layout_marginLeft="10dp" 
            android:layout_marginBottom="15dip"> 
    
            <TextView android:text="" />    
    
            <TextView
                android:text="Comment"
                android:layout_width="match_parent"
                android:layout_marginRight="10dp"
                android:textStyle="bold"
                android:padding="3dip" />      
        </TableRow>
    
        <TableRow 
            android:layout_marginLeft="10dp" 
            android:layout_marginBottom="15dip"> 
    
            <TextView android:text="" />        
    
           <EditText 
                android:id="@+id/EditText02"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginRight="20dp"
                android:lines="5" 
                android:gravity="top|left" 
                android:inputType="textMultiLine"
                android:scrollHorizontally="false" />
        </TableRow>
    
        <TableRow 
            android:layout_marginLeft="10dp" 
            android:layout_marginBottom="15dip"
            android:gravity="center">
    
            <TextView android:text="" />        
    
           <Button 
                android:id="@+id/cancel"
                android:layout_marginRight="10dp"
                android:text="Next" />       
       </TableRow>
    </TableLayout>
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written some code that loads an XML document using an XmlDocument object
I have written simple code to get content from xml file to php. $xml
I have written a C# code for triggering an XML to XML (XSLT) transformation.
I have written a LINQ to XML query that does what I want, but
I am trying to learn deserialization. I have written this code to deserialize *.hbm.xml
I want to convert nested xml to nested ul li structure. I have written
I have written xml file which contains html tags as element like <component> <input
I am having difficulties referencing all 3. I have already written my XML,XSD and
I have written a simple C++ shell program to parse large XML files and
I have written a small function, which uses ElementTree to parse xml file,but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.