android Programming Glossary: lastevent
rotation and scaling using multi touch in android http://stackoverflow.com/questions/8515709/rotation-and-scaling-using-multi-touch-in-android android gesture share improve this question float lastEvent null float d 0f float newRot 0f @Override public boolean onTouch.. event.getY if Constant.TRACE Log.d TAG mode DRAG mode DRAG lastEvent null break case MotionEvent.ACTION_POINTER_DOWN oldDist spacing.. mid event mode ZOOM if Constant.TRACE Log.d TAG mode ZOOM lastEvent new float 4 lastEvent 0 event.getX 0 lastEvent 1 event.getX..
rotation and scaling using multi touch in android http://stackoverflow.com/questions/8515709/rotation-and-scaling-using-multi-touch-in-android me exact solution for this problem. android android imageview android gesture share improve this question float lastEvent null float d 0f float newRot 0f @Override public boolean onTouch View v MotionEvent event ImageView view ImageView v Dump.. savedMatrix.set matrix start.set event.getX event.getY if Constant.TRACE Log.d TAG mode DRAG mode DRAG lastEvent null break case MotionEvent.ACTION_POINTER_DOWN oldDist spacing event savedMatrix.set matrix midPoint mid event mode ZOOM.. oldDist spacing event savedMatrix.set matrix midPoint mid event mode ZOOM if Constant.TRACE Log.d TAG mode ZOOM lastEvent new float 4 lastEvent 0 event.getX 0 lastEvent 1 event.getX 1 lastEvent 2 event.getY 0 lastEvent 3 event.getY 1 d rotation..
|