I\'m running into a bit of a problem. What I\'m doing: I\'ve got a ListView which has got some images in it. To make the scrolling smoother I\'ve disabled the images to show up
I have had this same problem and posted a workaround on the bug list:
For anybody still running into this problem (as I was last week) a workaround that works for me is the following: If android SDKInt == 7 set a
onTouchListeneron the(Abs)ListViewIn that
onTouchListenerwhen theOnTouchevent action isMotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCELyou force aonScrollStateChangedwith first aSCROLL_STATE_FLINGand then aSCROLL_STATE_IDLECode example: In the
onCreate:if(androidSDKInt <= 7){ listViewDateSelector.setOnTouchListener(new FingerTracker(onScrollListener)); }Then add a private class with:
private class FingerTracker implements View.OnTouchListener { private OnScrollListener myOnScrollListener; public FingerTracker(OnScrollListener onScrollListener){ myOnScrollListener = onScrollListener; } public boolean onTouch(View view, MotionEvent event) { final int action = event.getAction(); boolean mFingerUp = action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL; if (mFingerUp) { myOnScrollListener.onScrollStateChanged((AbsListView) view, OnScrollListener.SCROLL_STATE_FLING); myOnScrollListener.onScrollStateChanged((AbsListView) view, OnScrollListener.SCROLL_STATE_IDLE); } return false; } }