how do you set the spinner text color?

前端 未结 6 1004
庸人自扰
庸人自扰 2020-12-03 07:16

I have been unable to set the color on the spinner widget. How is this styled?

\"SpinnerText\"

6条回答
  •  有刺的猬
    2020-12-03 07:32

    The simplest form is:

    m_spnDia = (Spinner)findViewById(R.id.spiDia);
    TextView oTextView = (TextView)m_spnDia.getChildAt(0);
    oTextView.setTextColor(Color.RED);
    

提交回复
热议问题