Answers for "how to change spinner text color in android programmatically"

-1

change spinner text color android kotlin

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/text1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textSize="20sp"
    android:textColor="#ff0000" />
Posted by: Guest on June-17-2020
-1

change spinner text color android kotlin

ArrayAdapter adapter = ArrayAdapter.createFromResource(this,
R.array.planets_array, R.layout.spinner_item);

adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
spinner.setAdapter(adapter);
Posted by: Guest on June-17-2020

Code answers related to "how to change spinner text color in android programmatically"

Browse Popular Code Answers by Language