-1

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.

I_Burn
  • 31
  • 5
  • Use `RecyclerView` with a horizontal `LayoutManager`. See this: https://stackoverflow.com/questions/28460300/how-to-build-a-horizontal-listview-with-recyclerview – aminography Aug 03 '20 at 11:46

1 Answers1

0

You can achieve this easily by using a RecyclerView with a horizontal LayoutManager

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