I am using a recyclerview to list some elements and I want to know when the RecyclerView.Adapter has drawn all the elements I sent. there is any way to do that?
Asked
Active
Viewed 335 times
1
-
1RecyclerView only draw the elements/items you see on screen at a time. It'll not draw all element in one shot. – Akshay Feb 13 '20 at 06:09
-
1RecyclerView won't draw all the items at once? Are you trying to know if all the items are drawn or only the visible items are drawn? – Somesh Kumar Feb 13 '20 at 06:33
-
I mean, i need a callback when all elements of that adapter has been drawn – Javier Diaz Feb 13 '20 at 14:23
-
All of them? Including the ones that aren't onscreen? – Ryan M Feb 14 '20 at 02:26
-
Yes, i am using a skeleton library and I want to catch when that adapter finish to hide that effect – Javier Diaz Feb 14 '20 at 13:37
-
Question is a bit old, but I found the solution [here](https://stackoverflow.com/a/32679359/13950996) – arimionim Dec 01 '20 at 16:11
1 Answers
0
Please try with this :
class MyAdapter : RecyclerView.Adapter`<`MyAdapter.MyViewHolder`>`(){
// And then please Implement methods here of it.
}

Maximilian Ast
- 3,369
- 12
- 36
- 47

Jay Patel
- 75
- 1
- 10
-
I mean, i need a callback when all elements of that adapter has been drawn – Javier Diaz Feb 13 '20 at 14:23