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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:41:25+00:00 2026-06-17T17:41:25+00:00

I got 7 buttons aligned horizontally in a layout by giving them each a

  • 0

I got 7 buttons aligned horizontally in a layout by giving them each a weight of 1. This however stretches the button so the take up the same amount of space on the screen. I need the buttons to remain the good aspect ratio and still take up the whole width by making use of whitespace between the buttons. Is this possible with weight?

  • 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-17T17:41:27+00:00Added an answer on June 17, 2026 at 5:41 pm

    If you want to stretch not buttons but space around them, put buttons to containers and set weight to them. Also take a look at TableLayout and GridLayout.

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

Sidebar

Related Questions

I've got a series of buttons that each use a different image. Can I
I've got some dynamic created buttons in my GridView (adding them OnDataBound), but when
I've got a LinearLayout with a bunch of buttons on it. This panel is
i have got 24 buttons in my project.I need to manage them but I
I've got dynamic tableView and one problem. In each tableCell are two buttons. I'm
I got 3 buttons-links triggering some javascript code, with indication if certain button is
In my App I have 7 buttons aligned using relative layout. The order I
I've got two buttons that I'd like to dynamically weight give a preference. They
I've got three sidebar buttons. On a click event, each opens a previously hidden
So I've got 43 Radio buttons. When one of them is selected, it returns

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.