- nsY), (nfX - nsX) );
float angle = ((float)Math.toDegrees(angle1 - angle2)) % 360;
if (angle < -180.f) angle += 360.0f;
if (angle > 180.f) angle -= 360.0f;
return angle;
}
}
вторник, 17 мая 2016 г., 20:20:03 UTC+3 пользователь Pavel Vasilyev н
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
2 matches
Mail list logo