fast-scroller

Is there a callback for when RecyclerView has finished showing its items after I've set it with an adapter?

前提是你 提交于 2019-12-17 15:29:47
问题 Background I've made a library that shows a fast-scroller for RecyclerView (here, in case anyone wants), and I want to decide when to show and when to hide the fast-scroller. I think a nice decision would be that if there are items that aren't shown on the screen (or there are a lot of them that do not appear), after the RecyclerView finished its layout process, I would set the fast-scroller to be visible, and if all items are already shown, there is no need for it to be shown. The problem I

Is there a callback for when RecyclerView has finished showing its items after I've set it with an adapter?

我的梦境 提交于 2019-11-28 04:52:54
Background I've made a library that shows a fast-scroller for RecyclerView ( here , in case anyone wants), and I want to decide when to show and when to hide the fast-scroller. I think a nice decision would be that if there are items that aren't shown on the screen (or there are a lot of them that do not appear), after the RecyclerView finished its layout process, I would set the fast-scroller to be visible, and if all items are already shown, there is no need for it to be shown. The problem I can't find a listener/callback for the RecyclerView, to tell me when it has finished showing items,