Items in multiple columns - spinner

I am creating an Android application and I want to put many short items in Spinner. Basically, it works:

Android app - screenshot

But it does not work the way I want. As you can see, there are many items that have very short text. This means that the user may be asked to scroll a lot to find the items he needs. What I want to do is put the elements in multiple columns, but I don't know how to do it. I searched the Internet for a while, and the only solutions I found were “how to put multiple columns in one element” - I want “how to put elements in multiple columns”.

Thanks.

+4
1

-. 3 .

getView : 1) ( 3 ) 2) :

String mTag1=String.valueOf((position*3)-2); 
String mTag2=String.valueOf((position*3)-1); 
String mTag3=String.valueOf((position*3)); 
yourtextview1.setTag(mTag1);
...
// in position 1 you'll get 1-2-3, for position 2 it is 4-5-6 etc.

, onClickListener. ( getView) , onClick clicked, integer ( ), .

0

All Articles