Can we use scale gesture detector for pinch zoom in Android?

You can create a reusable class that implements OnTouchListener to accomplish this. public class MyScaleGestures implements OnTouchListener, OnScaleGestureListener { private View view; private ScaleGestureDetector gestureScale; private float scaleFactor = 1; private boolean inScale = false; public MyScaleGestures (Context c){ gestureScale = new ScaleGestureDetector(c, this); } @Override public boolean onTouch(View view, MotionEvent event) { this.view = … Read more

Android: Difference between onInterceptTouchEvent and dispatchTouchEvent?

The best place to demystify this is the source code. The docs are woefully inadequate about explaining this. dispatchTouchEvent is actually defined on Activity, View and ViewGroup. Think of it as a controller which decides how to route the touch events. For example, the simplest case is that of View.dispatchTouchEvent which will route the touch … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)