Android Question Right align spinner

bluedude

Well-Known Member
Licensed User
Longtime User
Hi,

I need a way to align the text in a spinner to the right. Any suggestions?

Cheers,
 

LucaMs

Expert
Licensed User
Longtime User
You should use some string function to add spaces on the left of texts (and trim them when select)
 
Upvote 0

bluedude

Well-Known Member
Licensed User
Longtime User
Don't think that is a neat solution, i'm going to look further to see what I can find. No offense.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I searched on the web and I think that there isn't a "direct" mode (reflection).

You can take a look at a my CustomView, ComboSearch (not perfect, but i have the source code :D).

It is not a classic spinner, looks more like a combobox.
If I remember correctly it is possible to align the text to the right.
 
Upvote 0
Top