My problem is that all touch events are being detected but not the Action_Down event. the log results in events 1, 2 and not 0 (for down).
here is my code
final ViewPager homeViewPager = (ViewPager)findViewById(R.id.homeViewPager);
homeViewPager.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch (View v, MotionEvent event){
Log.i("ViewPager", "event " + event.getAction());
switch (event.getAction()) {
case MotionEvent.ACTION_MOVE:
Log.i("ViewPager", "ACTION_MOVE");
break;
case MotionEvent.ACTION_DOWN:
Log.i("ViewPager", "ACTION_DOWN");
break;
case MotionEvent.ACTION_UP:
Log.i("ViewPager", "ACTION_UP ");
break;
}
return false;
}
});