mardi 19 mai 2015

Laying out three buttons even side by side (not with LinearLayouts)

What I am trying to accomplish is having multiple rows of buttons which are evenly distributed across the screen.

I am aware that you can use LinearLayouts with layout_weight to accomplish this. However, I may have up to 50 rows, all with three buttons, so I presume having this many LinearLayouts will cause performance problems.

My questions is: How can I evenly distribute three buttons across the screen, without hard-coding values. Is there a way of doing this so they adapt to screen size?

Thanks

Aucun commentaire:

Enregistrer un commentaire