How to create a button of arbitrary shape without using bitmaps

I am trying to create custom buttons for a touchscreen device.  I just want triangles and circles, but without generating a bitmap for each one.  Is this possible?

i.e. instead of this:

<button x="center" y="50" width="50" height="50">
    <state id="stateDefault" bitmap="@Drawables.UpArrow" />
</button>

Can I do something like this:

<button x="center" y="50" width="50" height="50">
    <state id="stateDefault">
    	<shape type = "rectangle" x = "0" y = "0" width = "10" height = "10"/>
    </state>
</button>