I need to define horizontal scrolling as a list. Should I use a gesture detector or onTouch event. I need to support Android 2.1 +
One post states that you need to override onInterceptTouchEvent in a ListView, as shown below:
@Override public boolean onInterceptTouchEvent(MotionEvent ev) { switch (ev.getAction()) { case MotionEvent.ACTION_DOWN:
Not sure if this works or is this the best way. It didn’t help that the question was lightly closed 8 days ago: Swipe the screen inside ListView - Android
Code Droid
source share