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

0

change spinner text color android kotlin

<Spinner
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:id="@+id/spinner"
    android:textSize="20sp"
    android:entries="@array/planets"/>
Posted by: Guest on June-17-2020
-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 java"

Browse Popular Code Answers by Language