Reputation: 625
I want to create matrix of buttons in Android dynamically for some m rows and n columns. It should be aligned in matrix form(table form). Plz help me.
Upvotes: 0
Views: 2218
Reputation: 1975
Use Gridlayout and add buttons dynamically based on positions in the getView method of the custom adapter.
Upvotes: 1
Reputation: 122
use a gridlayout
http://developer.android.com/reference/android/widget/GridLayout.html
Upvotes: 0