android Programming Glossary: mlastgesturey
Zoom and Panning ImageView Android http://stackoverflow.com/questions/12169905/zoom-and-panning-imageview-android mLastTouchY private float mLastGestureX private float mLastGestureY private int mActivePointerId INVALID_POINTER_ID private ScaleGestureDetector.. final float gy mScaleDetector.getFocusY mLastGestureX gx mLastGestureY gy break case MotionEvent.ACTION_MOVE Only move if the ScaleGestureDetector.. final float gdx gx mLastGestureX final float gdy gy mLastGestureY mPosX gdx mPosY gdy invalidate mLastGestureX gx mLastGestureY..
Zoom and Panning ImageView Android http://stackoverflow.com/questions/12169905/zoom-and-panning-imageview-android private float mPosY private float mLastTouchX private float mLastTouchY private float mLastGestureX private float mLastGestureY private int mActivePointerId INVALID_POINTER_ID private ScaleGestureDetector mScaleDetector private float mScaleFactor 1.f.. final float gx mScaleDetector.getFocusX final float gy mScaleDetector.getFocusY mLastGestureX gx mLastGestureY gy break case MotionEvent.ACTION_MOVE Only move if the ScaleGestureDetector isn't processing a gesture. if mScaleDetector.isInProgress.. final float gy mScaleDetector.getFocusY final float gdx gx mLastGestureX final float gdy gy mLastGestureY mPosX gdx mPosY gdy invalidate mLastGestureX gx mLastGestureY gy break case MotionEvent.ACTION_UP mActivePointerId..
|