Draw a gradient filled polygon to use in a selector
<p>I am trying to create a drawable such as this in Android:</p>

<p><img src="http://i.stack.imgur.com/lFJtz.png" alt="Arrow Image"></p>

<p>I don't think a nine patch will work because there is nowhere that can safety scale vertically. So next I tried a shape drawable but it does not support triangles.</p>

<p>I want to render this image on the fly so there are no artifacts. Also I want to be able to use it in a selector, so I need to be able to represent this image in xml. Maybe I need to extend some class to manually make the shape. If so how do I embed a tag in the xml to tell it where to render? Does anyone know where to start with this or have an example of something similar?</p>

<p>I have read the first 10 pages of hits on stack overflow and google and am not getting anywhere. Thanks very much for any help.</p>
