I have the following spinner
<android.support.v7.widget.AppCompatSpinner
android:id="@+id/origin_account"
android:layout_width="match_parent"
android:spinnerMode="dialog"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:popupBackground="#E6E6E6"
android:textColor="@color/light_grey"/>
the Java code is as follows
final ArrayAdapter<Account> dataAdapter2 = new ArrayAdapter<Account>(TransferOwnAccountActivityStep1.this,R.layout.spinner_custom,R.id.text1,Destino);
dataAdapter2.setDropDownViewResource(R.layout.spinner_custom);
spinner_ocupaciones.setAdapter(dataAdapter2);
The Cumstom Spinner is
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text1"
style="?android:attr/spinnerItemStyle"
android:singleLine="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:textAlignment="textStart"
android:background="@drawable/redondo"
android:drawableEnd="@drawable/flechaabajooo"/>
and the round.xml is
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:width="200dp"
android:height="30dp"></size>
<corners android:radius="5dp"></corners>
<solid android:color="#E6E6E6"></solid>
the issue is that pressing the spinner in DIALOG mode appears like this
I would like to be able to change the white background to the color that I want, and to probe with
android:popupBackground="#E6E6E6"