Android Question Cannot set spinner index [solved]

Didier9

Active Member
Licensed 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

klaus

Expert
Licensed 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
 
Top