I have created a custom spinner which works perfectly with all devices except Android 5.0
Here is my code for spinner background
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<layer-list>
<item>
<shape>
<gradient
android:startColor="#fff"
android:endColor="#fff"
android:angle="270" />
<stroke
android:width="0.7dp"
android:color="#000" />
<corners
android:radius="40dp" />
<padding
android:left="3dp"
android:top="3dp"
android:right="3dp"
android:bottom="3dp" />
</shape>
</item>
<item
android:gravity="end"
android:right="20dp"
android:top="@dimen/height_10"
android:width="@dimen/height_20"
android:height="@dimen/height_20"
android:drawable="@drawable/ic_drop" >
</item>
</layer-list>
</item>
</selector>
This is how it looks other than lolipop devices
other than lolipop

And on lolipop devices

layout.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@drawable/loginbg"
android:layout_height="match_parent"
>
<Spinner
style="@style/SpinnerStyle"
android:id="@+id/spin_seat_count"
android:layout_width="match_parent"
android:layout_height="@dimen/height_50">
</Spinner>
</LinearLayout>
</RelativeLayout>
I have updated the queastion ..Please check the layout xml
