mzgreen/HideOnScrollExample

At the bottom of RecycleView,FAB can not been seen

Wensibob opened this issue · 0 comments

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;
            }
        }