Skip to content

Releases: sockeqwe/AdapterDelegates

2.0.1

23 Jun 13:10
Compare
Choose a tag to compare
  • Added AdapterDelegatesManager.getDelegateForViewType(int) #20
  • Added AdapterDelegatesManager.getFallbackDelegate()

2.0.0

13 Apr 19:41
Compare
Choose a tag to compare
  • In contrast to 1.x in 2.0 AdapterDelegatesManager internally assigns view type integers automatically for you
  • You can assign view type integets for each AdapterDelegate explicitly by using delegateManager.addDelegate(23, adapterDelegate)
  • Method AdapterDelegate.getViewType() has been removed
  • Class AbsAdapterDelegate has been removed

1.2.0

29 Mar 12:30
Compare
Choose a tag to compare
  • Added AbsListItemAdapterDelegate: A new base class that reduces writing boilerplate code (like casts) when adapters datasource is of type List. This delegate casts automatically the item from list.getItem(position) and also the ViewHolder.

1.1.1

26 Jan 13:18
Compare
Choose a tag to compare

Added constructor that takes an AdapterDelegatesManager to AbsDelegationAdapter

1.1.0

30 Oct 13:21
Compare
Choose a tag to compare

Added the possibility to specify an AdapterDelegate as fallback in case no other AdapterDelegate can handle a certain item in adapter's data source. Also added AbsFallbackAdapterDelegate that can (but don't have to) be used as base class for an fallback AdapterDelegate.

AdapterDelegate myFallBackDelegate =  ... ;
adapterDelegateManager.setFallbackAdapterDelegate( myFallbackDelegate );

1.0.2 - Typo: removeDelegate()

29 Jul 14:52
Compare
Choose a tag to compare

There way a typo in AdapterDelegatesManager.removeDelegate()

1.0.1 - Typo: AbsAdapterDelegate

29 Jul 14:51
Compare
Choose a tag to compare

There was a typo in the class name of AbsAdapterDelegate

1.0.0 - First public relase

29 Jul 14:50
Compare
Choose a tag to compare