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

  • Home
  • SEARCH
  • 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 4019660
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:07:54+00:00 2026-05-20T10:07:54+00:00

I am new to Android development and having gone through the tutorial resources at

  • 0

I am new to Android development and having gone through the tutorial resources at developer.android.com, I’m still not clear which layouts are most useful in different circumstances.

To give a specific example, I would like to be able to replicate the UI from the Ebay application i.e a menu bar at the top and bottom of the screen and a panel in the middle. The bottom toolbar has buttons of equal size even when the length of the text differs.

I thought about implementing using a TableLayout with three rows, the top and bottom row containing the toolbars. Then for the bottom row I added a Linear Layout and added Buttons.

However my buttons are not of equal size and I’m also not sure that this is the best way to layout this UI configuration.

Can somebody provide the XML to achive this.

Thanks

  • 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-20T10:07:55+00:00Added an answer on May 20, 2026 at 10:07 am

    To make two buttons equal in the row you might try:

    <LinearLayout android:orientation="vertical">
        <Button android:layout_weight="1" android:layout_width="0dip"/>
        <Button android:layout_weight="1" android:layout_height="0dip"/>
    </LinearLayout>
    

    “weight” tells the widget how much of the free space it consumes. two equal weigths = equal size.
    E.g a weight of 2 and another of 1 means that widget one uses 2/3 of the space and widget two uses 1/3

    I am not going to post a layout, the layout you may choose heavily depends on what you are planning to do and how.

    Hope that helps

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

Sidebar

Related Questions

Extreme Android developer newbie here...well, new to Android development, not development in general. I
I'm new to Android development and I'm currently going through some tutorials. When I
I'm quite new to Android development (started 2 days ago) and have been through
I am new to android development and am currently working my way through the
I am new to Android development and having a problem with what SHOULD be
I am totally new to Android development. I'm not looking for code but what
I'm fairly new to eclipse and android development, and I'm having what must be
I am new to Android Development and I am having trouble with my XML
I was reading a beginners tutorial on android development which had this line in
Hi I am new into android development and I am having trouble into this

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.