android: AbsListView.OnScrollListener SCROLL_STATE_IDLE is not called after SCROLL_STATE_TOUCH_SCROLL (Version 2.1)

后端 未结 4 1357
孤独总比滥情好
孤独总比滥情好 2021-02-04 10:31

I have a problem with android version 2.1. It looks like a bug.

I attached an OnScrollListener to my listView.

I\'m using the method onScrollS

4条回答
  •  臣服心动
    2021-02-04 11:22

    I got a similar issue on 2.2.

    If the list is big enough, and I scroll down up, I got first CROLL_STATE_TOUCH_SCROLL while my finger is on the screen. When my finger leave the screen I got the SCROLL_STATE_FLING. When my view has stopped moving I got the SCROLL_STATE_IDLE.

    But, if during scroll, it reaches either View Top or Bottom, I only scroll/fling values and never the idle.

    I checked out Shelves project from Romain Guy and his implementation suffer the same issue on 2.2.x I'm wondering if he had noticed yet.

    I haven't tried yet with 2.3.x

提交回复
热议问题