What is the task of ViewHolder in RecyclerView?

What is the task of ViewHolder in RecyclerView?
Answer
LayoutManager. The LayoutManager is a class in Android that helps in taking the Views from the Adapter and arranges the data on it. By arranging I mean, to display data on the View at a particular position and to position Views on the screen in a particular way.
 

Tìm kiếm

Back
Top