Android - flip image in xml
<p>I want to flip image for button's background in xml. I've seen example how to do it, but it was programmatically way: <a href="http://xjaphx.wordpress.com/2011/06/26/image-processing-image-flipping-mirroring" rel="nofollow">http://xjaphx.wordpress.com/2011/06/26/image-processing-image-flipping-mirroring</a>. 
Anyway, I have a xml file (button_left_state.xml) like below :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;  
&lt;item android:state_pressed="true" &gt;
    &lt;rotate android:fromDegrees="180.0" android:toDegrees="180.0" 
    android:pivotX="50%" android:pivotY="50%" android:drawable="@drawable/buttonrightpressed" /&gt;    
&lt;/item&gt;    

&lt;item&gt;
  &lt;rotate android:fromDegrees="180.0" android:toDegrees="0.0" 
    android:pivotX="50%" android:pivotY="50%" android:drawable="@drawable/buttonright"/&gt;
&lt;/item&gt;   
&lt;/selector&gt;
</code></pre>

<p>But this code just rotate image to 180 degrees.
Is it possible to flip image in xml?</p>
