I'm using a GridView to show a list of TV channels using a SimpleCursorAdapter to retrieve channel name from a db. Default behaviour is to fill the grid left -> right, top -> bottom as in...
1 2
3 4
5 6
The GridView is fixed with 2 columns and obviously is scrollable vertically if it exceeds the vertical bounds of its parent.
I have a user who would prefer each column to be filled top->bottom before moving on to the next so effectively I'm looking at having a fixed number of rows with a 'grid' of some sort scrollable horizontally, example with 9 rows (fixed), no vertical scrolling, 2 columns visible and horizontal scrolling...
1 10 | 19
2 11 | 20
3 12 | 21
4 13 | 22
5 14 | 23 <-> 19-27 hidden, but columns scrollable horizontally
6 15 | 24
7 16 | 25
8 17 | 26
9 18 | 27
I understand GridView itself cannot do this but is there an existing view that would behave like this? If not, what would be the best approach to creating a custom view?
Thanks.