John Victor
John Victor

Reputation: 625

Creating Matrix of Buttons in Android dynamically

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

Answers (2)

pixelscreen
pixelscreen

Reputation: 1975

Use Gridlayout and add buttons dynamically based on positions in the getView method of the custom adapter.

Upvotes: 1

Related Questions