Actually I have fix it with implements OnTouchListener
For example,
public class myclass extends Activity implements OnTouchListener{
And then implements touch listener:
@Override
public boolean onTouch(View v, MotionEvent event) {
switch(e.getAction){
case (MotionEvent.TOUCH_DOWN)
// TO DO smthg.
break;
}
}
and than in activity On Create method write this code:
@Override
protected void onCreate(Bundle savedInstanceState) {
.
.
.
ImageView iv1 = (ImageView) findViewById(R.id.ImageView);
iv1.setOnTouchListener(this);