I am not able to get the second view id where the finger is moved. I tried to print the id where the pointer is using the following in the on touch listener.
case MotionEvent.ACTION_MOVE:
int pointerCount = event.getPointerCount();
for (int i = 0; i < pointerCount; i++) {
//System.out.println(v.getId());
System.out.println(event.getX() + "---" + event.getY());
System.out.println(v.getId());
}
break;
Here event is my MotionEvent and v is the View. I am able to get the X and Y positions of the touch, but i want to know which view is being crossed. I get only the view id of the first view that was pressed all the time.
I have checked the following links for some help, but was unable to get any relevant details.
How do I get the ID of the moving finger
retrieving the id of the view that was clicked
how to get the particular sub view id from the view in android?
Can somebody please help me with this?