Releases: drakeet/MultiType
Releases · drakeet/MultiType
v3.4.0
v3.3.2
v3.3.1
-
Rescued
MultiTypeAdapter.onBindViewHolder(holder, position)
(#171)Since we overwritten the
onBindViewHolder(ViewHolder holder, int position, List <Object> payloads)
, soRecyclerView
will not callonBindViewHolder(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
v3.2.0
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
v3.0.1
v3.0.0
- Removed all the
@Deprecated
classes/methods includingFlatTypeAdapter
- Removed the golbal type pool
GlobalMultiTypePool
- Added type checking for all of register methods
- Renamed
TypePool#getContents()
togetClasses()
(#109) - Supplied more java docs and tests
- Supported one type to different / multiple
ItemViewBinder
s in oneRecyclerView
:
v3.0.0-beta2
- Added a new operator: withClassLinker (#122)