Dhruvam Sharma
1 min readJul 30, 2020

--

That depends, actually.

View holders which are offscreen, and are almost ready to become visible, are fully inflated and with data. This is because of performance improvements.

While the holders which are far off, they don't have any data.

Make any small application with just RecyclerView and keep logging in different RecyclerView methods. You will see how the data is being added, and when is a view holder created during the lifetime of RecyclerView.

--

--

Dhruvam Sharma
Dhruvam Sharma

Written by Dhruvam Sharma

Google-certified Android Developer. Android Geek. In love with Flutter. Blockchain Explorer. Dancer. 🕺 Reader. Coffee Addict. 😍

No responses yet