I am using this xml code to rotate an imageVeiw 180 degrees:
<ImageView
android:id="@+id/keyP2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btn4"
android:layout_centerHorizontal="true"
android:adjustViewBounds="true"
android:rotation="180"
android:maxWidth="125dp"
android:scaleType="fitCenter"
android:src="@drawable/image0_key" />
This works fine for android api version 11 and up, but android:rotation="180"
is not supported below api 11. How can I rotate an imageView 180 degrees for below 11?