OK this is a problem that has bugged be for ages. I am looking to put 5 buttons, in a horizontal line, at the top of the android screen. These buttons must all be 20% of the width of the screen in width (so that they all fit alongside each other with no gaps) on ANY phone.
I just can’t figure out the XML. How can I do this? Does anyone have any ideas/samples? Thanks!
For the button row, use a horizontal linear layout the full width of the screen, put all the buttons in it, and give the buttons a layout width of 0 and equal layout weight > 0: