How can I have an ImageView update it's width/height when rotated?
If I have the below ImageView and debug, the width is 827 and height is 543. After rotation, the width/height remain the same causing issues with my animation.
The image is correctly rotated on screen, but I would expect ImageView dimensions to be updated (width = 543, height = 827).
<ImageView
android:id="@+id/imageView2"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_centerInParent="false"
android:src="@drawable/img"
android:adjustViewBounds="true"
android:padding="0dp"
android:background="@android:color/transparent"
android:visibility="visible"
android:layout_centerVertical="false" />
_img = FindViewById<ImageView>(Resource.Id.imageView2); //width = 827, height = 543
_img.Rotation = -90;
// width is still 827 and height is still 543