Android Question Set each element of a spinner a different text color

Sub7

Active Member
Licensed User
Longtime User
Hello, is possible to apply for each row of a spinner a different text color?

For example:

Spinner:
row1 green
row2 yello
row3 blue

and so on.

I know i can set the spinner text color using spinner.TextColor but this will set the color to all the elements.

Thank you
 

KMatle

Expert
Licensed User
Longtime User
Do it on your own. You could add a label and a list with the values. Clicking on the label will add n labels in different colours with different values under it. Clicking on one of those labels, the value will be put in the first one and all the others will be removed
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
@Sub7

I've updated the custom adaptor library since i uploaded it.
The update fixes a crash that occurs when an activity is resumed and the adapter had raised the GetView event while the activity was paused.

Contact me if you want the updated version.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…