Skip to content

Releases: drakeet/MultiType

v3.4.0

30 Oct 09:03
Compare
Choose a tag to compare
  • Added position param to Linker & ClassLinker and adapted to AGP 3.0.0 (#183)
    • Changed Android Support Library to v26.1.0
    • Changed minSdkVersion to 14
    • Used implementation to instead of compile

v3.3.2

13 Oct 13:24
Compare
Choose a tag to compare
  • Changed adapter to be bound to a binder in register time (#176)

    From this version, users will be able to immediately get a NonNull adapter by ItemViewBinder.getAdapter() after registering.

v3.3.1

18 Sep 00:28
Compare
Choose a tag to compare
  • Rescued MultiTypeAdapter.onBindViewHolder(holder, position) (#171)


    Since we overwritten the onBindViewHolder(ViewHolder holder, int position, List <Object> payloads), so RecyclerView will not call onBindViewHolder(ViewHolder holder, int position), onBindViewHolder(ViewHolder holder, int position) becomes an island, then we can turn it to the payloads method. This makes it easier for outside calls.

v3.3.0

18 Aug 02:45
Compare
Choose a tag to compare
  • Refactored TypePool to not define implementation type(List) (#162 #163)

    The new version of TypePool: TypePool.java

v3.2.0

01 Aug 09:49
Compare
Choose a tag to compare

Supplied getItemId(int) adapter API to ItemViewBinder (#157):

/**
 * Return the stable ID for the <code>item</code>. If {@link RecyclerView.Adapter#hasStableIds()}
 * would return false this method should return {@link RecyclerView#NO_ID}. The default
 * implementation of this method returns {@link RecyclerView#NO_ID}.
 *
 * @param item The item within the MultiTypeAdapter's items data set to query
 * @return the stable ID of the item
 * @see RecyclerView.Adapter#setHasStableIds(boolean)
 * @since v3.2.0
 */
protected long getItemId(@NonNull T item) {
    return RecyclerView.NO_ID;
}

v3.1.0

13 Jun 06:06
Compare
Choose a tag to compare

Supplied more adapter APIs to ItemViewBinder (#146)

  • Added ItemViewBinder#onViewRecycled(holder)
  • Added ItemViewBinder#onFailedToRecycleView(holder)
  • Added ItemViewBinder#onViewAttachedToWindow(holder)
  • Added ItemViewBinder#onViewDetachedFromWindow(holder)

v3.0.1

16 May 13:06
Compare
Choose a tag to compare
  • Changed inner default items of MultiTypeAdapter to be empty list and added @NonNull to the parameter of setItems(items) (#136)

v3.0.0

04 Apr 04:08
Compare
Choose a tag to compare
  • Removed all the @Deprecated classes/methods including FlatTypeAdapter
  • Removed the golbal type pool GlobalMultiTypePool
  • Added type checking for all of register methods
  • Renamed TypePool#getContents() to getClasses() (#109)

  • Supplied more java docs and tests
  • Supported one type to different / multiple ItemViewBinders in one RecyclerView:
    one to many

v3.0.0-beta2

17 Apr 16:13
Compare
Choose a tag to compare
v3.0.0-beta2 Pre-release
Pre-release
  • Added a new operator: withClassLinker (#122)

    one to many

v2.5.0

21 Mar 08:09
Compare
Choose a tag to compare
  • Renamed ItemViewProvider to ItemViewBinder and keep compatibility (#92)
  • Added onBindViewHolder(holder, item, payloads) for binder (issue #87)
  • Changed ItemViewBinder#getAdapter() to return MultiTypeAdapter
  • Changed TypePool's contents to be List not ArrayList (#93)
  • Updated support libs to v25.3.0