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 7409083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:01:21+00:00 2026-05-29T06:01:21+00:00

First, xml is as follows: <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical >

  • 0

First, xml is as follows:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    <TableLayout
        android:layout_width = "wrap_content"
        android:layout_height = "wrap_content"
        android:stretchColumns = "1">

        <TableRow>
            <TextView
                android:text = "Test Layout:"
                android:id = "@+id/LayoutTextView01"
                android:layout_width = "wrap_content"
                android:layout_height = "wrap_content"
                android:textColor = "@color/red_bg" />
            <EditText
                android:text = ""
                android:id = "@+id/EditText01"
                android:layout_width = "fill_parent"
                android:layout_height = "wrap_content" />
        </TableRow>

        <TableRow android:gravity = "right">
            <Button
                android:text = "test"
                android:id = "@+id/layoutButton01"
                android:layout_width = "fill_parent"
                android:layout_height = "wrap_content" />
        </TableRow>

    </TableLayout>


</LinearLayout>

My question is:

1.fill_parent means fill all the spaces of its parent container. And the parent of Button should have the same size of the parent of EditView, and for Button and EditView both set android:layout_width to “fill_parent”, they should have the same size, just like that:

________ ___________________
|_______| |__________________|
              __________________
             |__________________|

But the result is like that:

________ ___________________
|_______| |__________________|
                         ___________
                         |__________|

why?

  • 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-05-29T06:01:22+00:00Added an answer on May 29, 2026 at 6:01 am

    Maybe it helps if you add android:layout_column="1" to your button tag.

    By the way. How can i commend questions instead of submitting an answer?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code is as follows layout1 <?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 android:orientation=vertical
Ok I have declared my main.xml as follows <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=wrap_content
I have a simple xml below: <?xml version=1.0 encoding=utf-8?> <catalogue> <category name=textbook id=100 parent=books>
Suppose I have two XML files. First XML File: <?xml version=1.0?> <AccessRequest xml:lang=en-US> <AccessLicenseNumber>Your_License</AccessLicenseNumber>
First, how do I format the XML processing instruction, is it: <?processingInstructionName attribute=value attribute2=value2?>
First question on Stackoverflow (.Net 2.0): So I am trying to return an XML
Here is my first attempt at validating XML with XSD. The XML file to
this is my first time using StAX for parsing XML documents (still in the
I'm using this XML classes for the first time and can't find this piece
#!/bin/bash echo 'first line' >foo.xml echo 'second line' >>foo.xml I am a total newbie

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.