Reputation: 584
I need your advice. I have a list, but I need to divide it into two columns. In the left column are all even elements of the list (0,2,4,6 ...), and the right all the odd elements.
I thought it was possible as that implemented using GridView
, but it turns out everything in a single column.
If you can give an obvious example, or a reference to the solution of this problem.
I need something like this:
Upvotes: 1
Views: 521
Reputation: 486
change list view into grid view
insert below code on grid-view ;
android:numColumns="2"
Upvotes: 3