How to change spinner text size and text color?

后端 未结 24 1795
囚心锁ツ
囚心锁ツ 2020-11-22 11:35

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.

24条回答
  •  难免孤独
    2020-11-22 12:14

    If you work with android.support.v7.widget.AppCompatSpinner here is the simplest tested solution using styles:

     
    

    And the style:

    
    

    The only downside is the android:backgroundTint sets color for both the dropdown arrow and the dropdown background.

提交回复
热议问题