Android Question Cannot set spinner index [solved]

Didier9

Well-Known Member
Licensed User
Longtime User
I have attached a simple app showing the problem. It creates an array of spinners. The idea is to select a particular entry for each and display it but it will not display the selected index.
Tested on Android 5.1 and 9.
The answer is probably staring at me in the face but I can't see it.
Any help appreciated...
 

Attachments

  • TestSpinners.zip
    4.4 KB · Views: 188

klaus

Expert
Licensed User
Longtime User
The problem are the text colors.
Adding these two lines just after adding the Spinners onto pnlPage works.
spnSwitch(i).TextColor = Colors.Black
spnSwitch(i).DropdownTextColor = Colors.White


upload_2019-4-19_17-5-34.png
 
Upvote 0
Top