title: rotate a button with android:rotation xml
body: <p>I want a button(as an image) to rotate clockwise just for UI. I dont want to rotate the button onClick. Just rotate in xml file is enough. android:rotation does not work for me.</p>
  
  <p>my code is</p>
  
  <p><code>&lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New Button"
          android:background="@drawable/button"
          android:rotation="-90"
          android:id="@+id/button"
          android:layout_gravity="right|left"
          android:layout_centerVertical="true"
          android:layout_centerHorizontal="true" /&gt;</code></p>