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

At the bottom of RecycleView,FAB can not been seen #15

Open
Wensibob opened this issue Mar 1, 2017 · 0 comments
Open

At the bottom of RecycleView,FAB can not been seen #15

Wensibob opened this issue Mar 1, 2017 · 0 comments

Comments

@Wensibob
Copy link

Wensibob commented Mar 1, 2017

I have found that at the last item of recycleview we can not see the FAB the same as at the first item of recycleview , luckily you have solved the latter. But I have try the same way like below and it works well.

private int mItemSize=0;

public HidingScrollListener(int itemSize) {
        this.mItemSize = itemSize - 1;
}

int lastVisibleItem = ((LinearLayoutManager) recyclerView.getLayoutManager()).findLastVisibleItemPosition();

        if (firstVisibleItem == 0||lastVisibleItem==mItemSize) {
            if (!controlsVisible) {
                onShow();
                controlsVisible = true;
            }
        }
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

1 participant