Q:

Android: Spinner background with a drop down shape

Currently I am using this xml for the background of my spinner:
<item android:state_pressed="true" >
    <shape>
        <gradient
            android:startColor="#008000"
            android:endColor="#7FFF00"
            android:angle="270" />
        <stroke
            android:width="1dp"
            android:color="#A8A8A8" />
        <corners
            android:radius="6dp" />
        <padding
            android:left="10dp"
            android:top="10dp"
            android:right="10dp"
            android:bottom="10dp" />
    </shape>
</item>

<item>        
    <shape>
        <gradient
            android:endColor="#ffc536"
            android:startColor="#ffe9b3"
            android:angle="270" />
        <stroke
            android:width="1dp"
            android:color="#e4962d" />
        <corners
            android:radius="6dp" />
        <padding
            android:left="10dp"
            android:top="10dp"
            android:right="10dp"
            android:bottom="10dp" />
    </shape>
</item>

And I like the color and the gradient however there is no indicator that there it is a drop down menu. Is there anyway to add a image or a shape to the right side to indicate a drop down menu? I found this easier then make 9-patch files.

A:

You need to create a custom component and write an XML file and a UI element for it to implement this.
Simply treat the UI element as a drop-in version of what you're trying to implement.
Hope this helps!

