In my project, all Spinner fonts suddenly turned white for a reason that I cannot find. Before, everyone was black. For example, in the spinner, a drop-down list appears in white. This XML file is as follows:
<Spinner android:id="@+id/mainactivity_spinner_city" android:fontFamily="Roboto" android:layout_width="250dp" android:layout_height="wrap_content" android:layout_below="@+id/mainactivity_imageview_logo" android:layout_marginTop="15dp" />
To make sure, I added # 000000 to all related places, but the list is still white. Spinner is populated in the following way:
ArrayAdapter<String> dataAdapter2 = new ArrayAdapter<String>(context, android.R.layout.simple_spinner_item, list); dataAdapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapter(dataAdapter2);
So, I added black color to simple_spinner_item and simple_spinner_dropdown_item, but still no changes. In the Java part, I am not doing anything related to color. What can cause all these texts to be white?
Edit: Only spins have a problem. I can change the text colors of other elements. But I cannot change the spinners, although I inserted textColor: "# 000000" anywhere on the spinners.
source share