Text on spinner is white on a white background

后端 未结 8 1944
半阙折子戏
半阙折子戏 2020-12-13 09:01

The text on my spinners is white, and I have no idea why.

\"enter

This is my x

相关标签:
8条回答
  • 2020-12-13 09:58

    i change it from

    new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_spinner_item, some_list);
    

    to new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list);

    it's fixed, although i don't want to use "this"

    0 讨论(0)
  • 2020-12-13 09:58

    Maybe you have a white android:textColor="@android:color/white" attribute in your simple_spinner_item.xml in the layout folder of your project.

    Better use a custom spinner item layout with a good android:textColor="@android:color/COLOR_YOU_WANT_TO_USE" attribute.

    0 讨论(0)
提交回复
热议问题