Answers for "can i change color of spinner text android"

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

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 "can i change color of spinner text android"

Browse Popular Code Answers by Language