I did this but the item you select on the spinner remains white. The “item text colour” just changes the ones in the dropdown menu, not the selected one.
You have coding issue.
For spinner property, you are setting its element as follows:
Then in blocks editor, as soon as a selection is made, you change its values (see below). You don’t really need to change the elements. Just get rid of that block
It has nothing to do with coding, it’s a theme issue and works after build
@justxelliot try to build and use Light Theme
Surprisingly the code works, on first run he would choose item2 but it will show 2 and after that the elements will stay on 1-5
The biggest issue is that themes are messed up, try building with Light Theme and Dark Theme and you would see
I mentioned this in another thread that themes are wrong, Default Theme and Dark Theme have switched some colors etc
I correct myself:
Everything is going wrong here …
Test_Spinner.aia (4.9 KB)
Test_Spinner.apk (5.0 MB)
Thanks for the replies everyone.
The issue here for me is still that the text of the selected spinner item is always showing as white. The spinner dropdown V can be set by changing the spinner colour, but there isn’t an option for “selection text colour”. The “item text colour” only changes the colour of the items in the dropdown when you click the spinner. I want to be able to make the spinner text black, like the rest of the buttons in my app.
As long as you don’t execute set elements or elements from string after first run, spinner works as it should and it is using Spinner Color for both text and the arrow
After you execute set elements it falls back to default theme color (white) and text size (which in my opinion is a bug as it should return black)
Second bug, 2 spinners different colors, if I choose one of them then the other one inherits the color from the first one and vice versa but only on the arrow
Default theme Test_Spinner.apk (5.0 MB)
Light theme Test_Spinner.apk (5.0 MB)
Yeah that’s the problem, I do change the spinner elements (if someone changes the region in the app, certain websites don’t work, so I remove/add elements from the spinner dynamically).
I could do this with multiple spinners and changing the visibility of each, but I still think this issue with the colours is something that shouldn’t be there.
Currently I’ll just keep using it with it being the wrong colour until hopefully it gets fixed. Is there a way we can add this to a bug list to be fixed at some point?
Noted. Tracked and we’ll take care of this
That’s a great question, it’s still bugged for me.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This error that was described in this tropic still persists when compiling the apk:
Kodular Staff, do we have any solution for this?
Please be patient. Developers have also lives apart from developing Kodular.
Thank you Hossein!