How to change spinner text size and text color?

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

    
    
    

    just use this:

    ArrayAdapter adapter_category = new ArrayAdapter(this,
        R.layout.spinner_list_item, categories);
    adapter_category
        .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    

提交回复
热议问题