In my application, I have a Linear layout with 10 images. I want to get the name of Imageview when touch move from one Imageview to another.
Menu.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
switch(motionEvent.getAction()) {
case MotionEvent.ACTION_MOVE:
Float Ypoints = motionEvent.getY();
return true;
case MotionEvent.ACTION_DOWN:
return true;
default:
return false;
}}
});
I am trying to get the co-ordinate of all Imageview to get achieve this. But it will create problem for different resolutions. Is there any way to detect the view when finger touch move. Please help. Thanks.