I have an ArrayList<myObject> and a ListView with a personal ArrayAdapter<myObject> using an inflated View that generates a list of Buttons.
It works, but one button per line is quite layout consuming ^^
I wanted to know if it was possible to display two or more items (Button) per line and how to do such a thing ?
I thought about dividing my items in two lists (even and odd) but they’ll have to scroll all-together for a better user experience…
any idea ? or object that already implements it ?
Thanks
For that case, just take a GridView with 2 columns, i am sure this will fulfill your requirement.
gridview_row.xml
and take GridView instad of ListView as:
Once you are done with these 2 things, then implement the code in your custom adapter. And i am sure your current adapter is also 90% useful, you just need to change the code according the row xml file.