:) I'm trying to separate the touch from the slide but I can't get it right: - when the user slides the screen I want to get only slides
public void onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_MOVE ) {
Log.e(Logcat, "1 slide");
}
else
if (event.getAction() == MotionEvent.ACTION_DOWN) {
Log.e(Logcat, "1 touch");
}
super.onTouchEvent(event);
}
Thank you!
edit
public void onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_MOVE ) {
slide = true;
Log.e(Logcat, "1 slide");
}
else
if (event.getAction() == MotionEvent.ACTION_DOWN) {
slide = false;
}
else if (event.getAction() == MotionEvent.ACTION_UP)
{
if(!slide)
{
touch =1;
Log.e(Logcat, "1 touch");
}
}
super.onTouchEvent(event);
}
This doesn't work neither, all i get is a number of slides (even on touch)