dimanche 31 juillet 2016

Android studio grid of buttons auto align

Say I want 3 rows and 3 columns of buttons so 9 buttons in total. If one button in any position is removed, how would I go about shifting them so there isn't a gap where the button once was? I can think of some lengthy and possibly unnecessarily complicated ways to achieve this in an activity. Is there a simpler way to do this through the layout file?

Aucun commentaire:

Enregistrer un commentaire