Recyclerview
Recyclerview
Android Adapter
Adapter holds the data fetched from an array and iterates through each item in
data set and generates the respective views for each item of the list. So, we can
say it act as an intermediate between the data sources and adapter views such
as ListView, Gridview.
Different Types of Adapter –
ArrayAdapter: It always accepts an Array or List as input. We can
store the list items in the strings.xml file also.
CursorAdapter: It always accepts an instance of cursor as an input
means
SimpleAdapter: It mainly accepts a static data defined in the
resources like array or database.
BaseAdapter: It is a generic implementation for all three adapter
types and it can be used in the views according to our requirements.