➕ Add new methods to
getItems(): Access the underlying List of data items so there is more flexibility to interact with the Adapter.
removeItem(T item): Removes a given item from the adapter and refreshes the AdapterView or RecyclerView
removeItems(Collection items): Same as above but for a collection of items.
addItems(Collection items): Add a Collection of items and refreshes the AdapterView or RecyclerView
setItemsWithoutNotifying(List): Same as setItems(List) but this method does not call notifyDataSetChanged()
- 👌 Improves the way that exceptions are handled.
- ➕ Adds the option to pass a generic
ItemViewHolderthrough the easy adapters constructor. This new argument called
listeneris intented to pass an implementation of an interface to the view holder that then can be used as a callback to notify Activities or Fragments of an action, i.e one of the views in the list has been clicked.
➕ Adds a
BaseEasyRecyclerAdapterso now we can use this library with RecyclerViews in the same way as ListViews
getView()implementation to an abstract
BaseEasyAdapterto allow the implementation of custom easy adapters with different data structures.
🐎 Performance improvements. Now
onSetListeners()is only called once when the
ItemViewHolderis created. This introduces breaking changes because now
onSetListeners()doesn't have any parameters.
➕ Adds a new helper method
ViewHolder.getContext()that makes it easier to access the resources in the
v1.0.0March 31, 2014