Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载更多 #72

Open
ghost opened this issue May 19, 2016 · 2 comments
Open

加载更多 #72

ghost opened this issue May 19, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented May 19, 2016

如果我设置了listview的滑动监听事件,加载更多就失效了?
` mListView.setOnScrollListener(new AbsListView.OnScrollListener() {
@OverRide
public void onScrollStateChanged(AbsListView view, int scrollState) {
switch (scrollState){
//滑动停止
case AbsListView.OnScrollListener.SCROLL_STATE_IDLE:
if (currentPosition>=3){
fab.setVisibility(View.VISIBLE);
}
break;
//正在滚动
case AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:
fab.setVisibility(View.GONE);
break;
//手指抛动时滚动
case AbsListView.OnScrollListener.SCROLL_STATE_FLING:
fab.setVisibility(View.GONE);
break;
}
}

        @Override
        public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
            currentPosition = totalItemCount;
        }
    });`
@LeeCould
Copy link

LeeCould commented Jun 5, 2016

加载方法要在itme点击事件之前调用......

@chentao7v
Copy link

使用LoadMoreContainer的setOnScrollListener方法 @MichealMike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants