Hi all,

I'm trying to rotate WebView (actually don't think there is a difference 
with any Views) by rotation gesture with two fingers.
I use the following code:
mView.animate().rotation(-mCurrentAngle).setDuration(0).start();

I get fingers' relative coordinates by MotionEvent.getX(pointerIndex);

The problem appears if I'm trying to change pivot point. WebView suddenly 
starts changing its view in layout after I set pivot point.

I had the same problem with scaling and tried solutions from this topic: 
http://stackoverflow.com/questions/14415035/setpivotx-works-strange-on-scaled-view
And it helped. But not for rotation.

Does any body know is it possible to rotate view with changed pivot button?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b4db2d86-6290-4ec8-9099-3d769e5e1ed3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to