I want to create a spinner with white background & black border and arrow icon (without using image if possible).
But when I use the following code, the spinner displays white background with black border but does not display arrow icon.
<Spinner
android:id="@+id/spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:background="@drawable/txtbox_row_border"
android:spinnerMode="dropdown"
>
</Spinner>
txtbox_row_border.xml code
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#FFFFFF" />
<stroke
android:width="1dp"
android:color="#515151" />
</shape>
And when i use the following code, the spinner displays arrow icon but with gray colored background.
<Spinner
android:id="@+id/spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:background="@android:drawable/btn_dropdown"
android:spinnerMode="dropdown" >
</Spinner>
How can i achieve all my requirements in a single block of code? Thanks in advance.