How to change the Spinner font color?

后端 未结 8 1380
盖世英雄少女心
盖世英雄少女心 2020-12-01 06:34

I\'m having an issue with the Droid X phones where users say that the font color turns out to be white in the spinner, making it invisible unless the users highlight the ite

8条回答
  •  爱一瞬间的悲伤
    2020-12-01 07:02

    Simple and Crisp ...

    private OnItemSelectedListener OnCatSpinnerCL = new AdapterView.OnItemSelectedListener() {
      public void onItemSelected(AdapterView parent, View view, int pos,
            long id) {
        ((TextView) parent.getChildAt(0)).setTextColor(Color.BLUE);
        ((TextView) parent.getChildAt(0)).setTextSize(5);
      }
    
      public void onNothingSelected(AdapterView parent) {
      }
    };
    

提交回复
热议问题