列表视图滚动完成后如何查找?

akd*_*akd 1 android listview

是否有任何方法可以调用,以找出滚动不起作用?

或者列表视图停止滚动时是否有任何可以调用的侦听器?

提前致谢!

Zoo*_*bie 8

    listView.setOnScrollListener(new OnScrollListener() {
                    @Override
                    public void onScrollStateChanged(AbsListView view, int scrollState) {
                        switch (scrollState) {
                        case OnScrollListener.SCROLL_STATE_IDLE:
                            Log.i("", "here scrolling is finished");
                            break;
                        case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:
Log.i("", "here scrolling is finished");
                        case OnScrollListener.SCROLL_STATE_FLING:
                            Log.i("", "its scrolling....");
                            break;
                        default:
                            break;
                        }
                    }
Run Code Online (Sandbox Code Playgroud)

祝好运...