I want to change the spinner style such that it shows a border around it. For example it needs to look like this,
Basically same as the default style as a spinner, just with a border around it.
I want to change the spinner style such that it shows a border around it. For example it needs to look like this,
Basically same as the default style as a spinner, just with a border around it.
Create a new xml file like this in drawable folder and customize it like you want
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="2dp" />
<solid android:color="@android:color/white" />
<stroke
android:width="3dp"
android:color="@android:color/black" />
</shape>
Then set this shape drawable as spinner background