I have an ImagaView,in which I set the bitmap and made some rotation using onTouchListener concept.
If I set another Bitmap to same imageview,it is displaying in same angle which is left after doing rotation of previous image.
So,I just want the ImageView to come in default position.
Thanks
You already have code to rotate imageView when pinching use that to reset the imageview's rotation to 0(zero).
Btw the function to ratate a view is
myImageView.setRotation(float rotationInDegrees);
e.g.
myImageView.setRotation(0);
Call this when you apply the new image source to the imageview.
http://developer.android.com/reference/android/view/View.html#setRotation(float)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With