How to set pinch for ImageView

view story

http://stackoverflow.com – I have imageView. I used move my ImageView using MotionEvent. How to set pinch zoom functionality for imageView. I didn't use any GestureDetection functionality. I need simple pinch with two fingers. code: imageView.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v,MotionEvent event) { // TODO Auto-generated method stub layoutParams = (RelativeLayout.LayoutParams) imageView.getLayoutParams(); switch(event.getAction()) { case MotionEvent.ACTION_DOWN : { parms = (RelativeLayout.Layou (HowTos)