(android) rows of buttons that take up the entire width of the screen
Posted
by
user558043
on Stack Overflow
See other posts from Stack Overflow
or by user558043
Published on 2010-12-30T07:49:00Z
Indexed on
2010/12/30
7:54 UTC
Read the original article
Hit count: 167
I am trying to make 3 rows of 4 buttons each that will take up the entire width of the screen. I have tried Linear Layout but have trouble adding a second row and from what I have read nesting Linear Layouts is bad practice. I tried to use relative layout several times but I cannot manage to get the buttons to fill the width of the screen because it ignores layout_weight, I then tried nesting linear layout in relative layout but layout_weight is still ignored.
What is the best way to accomplish this?
© Stack Overflow or respective owner