Friday, 15 August 2014

How to add buttons with specific text and onClickListeners into grid layout? (Android XML + Java)



How can I add various buttons based off of color into a GridView?


Specifically, I want, say, 16 colors in a grid view. The view would fit the screen, and fit only 1/3 of it. How could I add this, and is it possible in purely xml?


No comments:

Post a Comment