I need to implement function of changing the application theme up on button click. I have already changed successfully style of buttons, edittexts and textviews. But faced the problem of changing style for Spinner
.
The only successful change is change of background color:
spinnerRoutes.setBackgroundResource(R.drawable.dark_theme_spinner_background);
BUT only background of title row changed. I need also to change textColor of rows and items, and background of spinner rows.
I have already tried alot of similar stackoverflow solutions but none of them worked.
Is it even possible to change style of spinner programatically?
Aucun commentaire:
Enregistrer un commentaire