Fast and versatile Adapter for RecyclerView which regroups several features into one library to considerably improve the user experience :-)
setHandleAlwaysVisible()
.fastScrollerHandleAlwaysVisible
.fast_scroller_bar
, fast_scroller_handle_idle
.smoothScrollToPosition()
, to safely scroll to a position with a default delay of 150ms
.removeSection(IHeader)
.onSaveInstanceState
.AbstractFlexibleItem
are born with draggable and swipeable enabled!FlexibleAdapter.isEnabled(position)
in favor of the new name isItemEnabled(position)
.final
from FlexibleAdapter#removeListener()
.ExpandableViewHolder
: new method isViewCollapsibleOnClick()
.@CallSuper
in ExpandableViewHolder
.100ms
, giving more time to the LayoutManager computation.FlexibleAdapter.onLoadMoreComplete(list, -1)
not working.EmptyViewHelper
setup: static creator methods (constructors are now private).android.databinding.enableV2=true
at compile time.Fixed #568 - Possible memory leak when using Sticky Headers.
⚠️ Warning: If you come from previous versions/snapshots, with this update you MUST review your code. Please, follow the Wiki page Migrations.
UnsupportedOperationException
for immutable list on sort.DiffUtil
is back 😉getItem(position, class)
to automatically cast the item expected from that position.setHeadersShown(boolean)
to manually change the flag to indicate that headers are already inserted in the main list by the user.initStickyHeadersHolder
on orientation change.addListener
and removeListener
methods.⚠️ Warning: If you come from previous versions/snapshots, with this update you MUST review your code. Please, follow the Wiki page Migrations.
implementation 'eu.davidea:flexible-adapter-ui:1.0.0-b1'
UndoHelper
: Use of new Action.UPDATE
doesn't remove items from the Adapter Refactoring OnUndoListener
into OnActionListener
.onViewAttachedToWindow()
/onViewDetachedToWindow()
are called by RV.removeListener(@NonNull Object listener)
can now accept the instance of the listener or the Class
object (as before) if the instance is not available.ExpandableViewHolder#onClick
should always call super()
.highlightText
and highlightWords
text loose the upper case during the scan.bindViewHolder
method is causing a problem with GreenDao.⚠️ Warning: If you come from previous versions/snapshots, with this update you MUST review your code. Please, follow the Wiki page Migrations.
OnStickyHeaderChangeListener
.setStickyHeaderElevation
now accepts only dpi value.getBubbleText()
in IFlexible
. For who inherits from AbstractFlexibleItem
, this change has default implementation returning position + 1
. For who implements directly from IFlexible
this method must be implemented.getItemViewType
in IFlexible
. This gives flexibility to reuse same Layout for multiple item types as explained in #430. For who inherits from AbstractFlexibleItem, this change is transparent. For who implements directly from IFlexible
this method must be implemented.IFlexibleLayoutManager
.BubbleTextCreator
can be set in FastScroller.OnActionListener
in UndoHelper also onPreAction()
and onPostAction()
.OnUndoListener
and renamed also the method remove
series.⚠️ A small bug has been reported, see issue #475 for quick workaround.
highlightText()
with multi-span in same text.highlightWords()
.getSameTypePositionOf()
.getSubPositionOf()
.setEndlessScrollListener
crashes when logging is enabled.null
.