Spinner - Selection disappears when you change the elements? Bug?

It has nothing to do with coding, it’s a theme issue and works after build

@justxelliot try to build and use Light Theme

@Boban take a look at blocks. Don’t you see issue in the blocks?

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
bild
bild

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)
bild

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
bild
bild

Default theme Test_Spinner.apk (5.0 MB)
Light theme Test_Spinner.apk (5.0 MB)

1 Like

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

4 Likes

Is this fix ready for the next release? I didn’t find in @Diego 's Bug Tracker thread.

That’s a great question, it’s still bugged for me.

1 Like

@Diego, can you answer if this error has already been fixed?

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?

1 Like

@Hossein @Diego @Peter Do we have any solutions or predictions to fix this error?

1 Like

Please be patient. Developers have also lives apart from developing Kodular.

Tracking here

2 Likes

Thank you Hossein!

1 Like

No solution so far … :pensive:

Some updates have been done locally. Need to have enough updates for each release

1 Like