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

上拉加载更多之后怎么滑倒底部啊,一直不行啊,用recyclerview的smothto #318

Open
wudaotiantian opened this issue Aug 26, 2017 · 3 comments

Comments

@wudaotiantian
Copy link

No description provided.

@iielse
Copy link

iielse commented Sep 11, 2017

alibaba/vlayout#187

看看这个吧

  @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;
    }

可能有个 SNAP_TO_END 什么的

@zhangman523
Copy link

实现了支持所有View 的上拉加载 https://github.com/zhangman523/LoadMoreViewLayout

@timi-codes
Copy link

Try this

mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
    @Override
    public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
        // TODO Auto-generated method stub
        //super.onScrollStateChanged(recyclerView, newState);
        int firstPos = mLayoutManager.findFirstCompletelyVisibleItemPosition();
        if (firstPos > 0) {
            ptrFrameLayout.setEnabled(false);
        } else {
            ptrFrameLayout.setEnabled(true);
        }
    }

    @Override
    public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
        super.onScrolled(recyclerView, dx, dy);
    }
});

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

4 participants