ListAdapter renewed
ListAdapter renewed Every Android developer has worked with the RecyclerView when a list of content needs to be shown. Before the RecyclerView Android offered the widget ListAdapter , with bad performance and several other issues. Since the Android support lib version 27.1.0 Google added a new ListAdapter which extends RecyclerView.Adapter to make life even easier. Yes it has the name ListAdapter again :(, but for the rest it is completely different! The simplified ListAdapter To create a custom ListAdapter override the methods onCreateViewHolder() and onBindViewHolder(). All other methods are already handled by the ListAdapter and don't need any attention anymore. onCreateViewHolder() : Called when RecyclerView needs a new RecyclerView.ViewHolder of the given type to represent an item. onBindViewHolder() : Called by RecyclerView to display the data at the specified position. The ListAdapter constructor requ...