0

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.

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

use a gridlayout

http://developer.android.com/reference/android/widget/GridLayout.html

1 Comment

right... so if u r targeting lower versions gridview can be an option

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.