- Jul 30, 2016
- 1
- 0
- 0
I have code like that
View.OnTouchListener touchListener = new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
//if (counter == 0) {
Log.v("touch in button: ", event.getX() + " " + event.getY());
return true;
}
};
When I press my finger on a button and move it to the next view, my "touchListener" strill firing. How I can avoid this?
View.OnTouchListener touchListener = new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
//if (counter == 0) {
Log.v("touch in button: ", event.getX() + " " + event.getY());
return true;
}
};
When I press my finger on a button and move it to the next view, my "touchListener" strill firing. How I can avoid this?