Button Is Squeezed When It Exceeds Layout
In my code, I create buttons dinamically. When I create multiple buttons is the following problem: How do I get it when it happens the button is put down? My code: private voi
Solution 1:
You could set all of your buttons' weights to 1, but that would cause all of your buttons to become "Squished".
Do you think a HorizontalScrollField
would work? I think that may be the best solution.
Just wrap your LinearLayout
in a HorizontalScrollField
and add your buttons to the LinearLayout
as you are now.
Solution 2:
Fitting 3 buttons in one row seems a bit messy. You could try a different layout style, perhaps a triangular setup, or change your UI design into something more compact and change the flow of how the buttons appear.
Solution 3:
I made a LinearLayout Vertical
same, thanks to everyone for the answers. :)
Post a Comment for "Button Is Squeezed When It Exceeds Layout"