In my Android application, I am using spinner, and I have loaded data from the SQLite database into the spinner, and it\'s working properly. Here is the code for that.
we can change style of spinner textview set theme for spinner like this:
styles.xml:
then
if you want to change spinner textview attribute programtically:
Programatically:
val textView = (view.getChildAt(0) as TextView) textView.setTextColor(resources.getColor(R.color.dark_mode))