I have already tried to implement endless scrolling for LinearLayoutManager and it is successful and implement LinearLayoutManager to StaggeredGridLayoutManager I have tried it but it is not working
I just want to get the first twenty item. LinearLayoutManager in
:
int firstVisibleItem = linearLayoutManager.findFirstVisibleItemPosition (int);
but in StaggeredGridLayoutManager:
int firstVisibleItem = staggeredGridLayoutManager.findFirstVisibleItemPositions (int [])
How to
Is there a good way / implementation about this?
Thank you in advance
I am doing this:
You can use one of two ways: StaggeredGridLayoutManager:
Pass an empty interval array that starts with the posts You will go and use whatever you understand.
private bullion loading = true; Private intimate widgets, visual itemcount, total ITEMCOUNT; MRecyclerView.setOnScrollListener (New RecyclerView.OnScrollListener ({@ScrerollViewRescrolledViewRescrollView, int dx, int DY) {visibleItemCount = mLayoutManager.getChildCount (); totalItemCount = mLayoutManager.getItemCount (); int [] FirstValiditimes = Faucet; First Wise = () (Loaded {{(Visible itemcount + previous discretion item) & gt; = total iTamecab} {Loading = false; log D. ("tag", "load forward object");}}}})
No comments:
Post a Comment