Skip to content

1.5.0 - Extra methods in adapters

Latest
Compare
Choose a tag to compare
@ivacf ivacf released this 10 Jun 09:47
· 7 commits to master since this release

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