Android spinner background

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item>
        <layer-list>
            <item>
                <shape android:shape="rectangle">
                    <padding
                        android:left="2dp"
                        android:top="4dp"
                        android:right="2dp"
                        android:bottom="4dp"
                        />

                    <gradient android:startColor="#ffffff" android:endColor="#ffffff" android:angle="270" />
                    <stroke android:width="3px" android:color="@color/colorShadow2" />
                    <corners android:radius="5dp" />
                </shape>
            </item>

            <item>

                <bitmap android:gravity="center|right" android:src="@drawable/ic_spinner_dropdown"/>

            </item>

        </layer-list>
    </item>
</selector>

Leave a Comment

Your email address will not be published. Required fields are marked *

top