Answer the question
In order to leave comments, you need to log in
How to position buttons on a given layout in Android?
How to describe xml markup in android to make buttons like this?
The goal is for the buttons on all devices to be straight and square.
Answer the question
In order to leave comments, you need to log in
1. LinearLayout with layout_width="match_parent" and 5 buttons, each with layout_width = 0dp and layout_weight = 1; ( code examples )
2. GridLayout with 1 row and five cells ( code examples )
PS: learn to use Google search ;)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question