My problem is this, I need a 2d array of buttons. There are 164 buttons in total separated in 19 rows. I tried with gridview but I couldn't make it work because grid view only goes vertical, I need it to go horizontal because the buttons are a constant size so a horizontal scroll would be really helpful. If there's a way to make gridview also go horizontal I'd be great but as long as it works, I don't mind using something else altogether. So, if you can, any code or links are much appreciated.
Asked
Active
Viewed 23 times
1 Answers
0
You can achieve this easily by using a RecyclerView with a horizontal LayoutManager

Hasindu Dahanayake
- 1,344
- 2
- 14
- 37