How to change spinner text size and text color?

后端 未结 24 1779
囚心锁ツ
囚心锁ツ 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:36

    If all the spinners may have the same text color for their TextView items, another approach is to use a custom style for spinner dropdown items:

    In res/values/styles.xml:

    
        
    
        
    
        
    
    

    And define your custom color in res/values/colors.xml:

    #808080
    

提交回复
热议问题