easy-adapter v1.5.0 Release Notes

Release Date: 2015-06-10 // almost 9 years ago
  • โž• Add new methods to EasyAdapter and EasyRecyclerAdapter:

    • 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()

Previous changes from v1.4.0

    • ๐Ÿ‘Œ Improves the way that exceptions are handled.
    • โž• Adds the option to pass a generic Object to the ItemViewHolder through the easy adapters constructor. This new argument called listener is 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.