0

I want to change the spinner style such that it shows a border around it. For example it needs to look like this,

spinner image

Basically same as the default style as a spinner, just with a border around it.

Shababb Karim
  • 3,614
  • 1
  • 22
  • 35

1 Answers1

1

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

lubilis
  • 3,942
  • 4
  • 31
  • 54