In my project, all Spinner fonts suddenly became white for a reason I can't find. Before all of them were black. For example, in a spinner, the dropdown list comes all in white. It's 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" />
In order to make sure, I added #000000 to all related places, but the list is still white. The spinner gets populated with the following method;
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 as well but still no change. In Java part, I do not do anything related to color. What may be causing all these texts being white?
Edit: Only spinners have problem. I can change other elemens' text colors. But I can't change spinners even though I inserted textColor:"#000000" to anywhere related with spinners.