Skip to content
Davide Steduto edited this page Jun 26, 2016 · 14 revisions

###In this page

  • Main exposed listeners
    • OnUpdateListener
    • OnDeleteCompleteListener
    • OnItemClickListener
    • OnItemLongClickListener
    • OnActionStateListener
    • OnItemMoveListener
    • OnItemSwipeListener
    • OnStickyHeaderChangeListener
  • Listener exposed through methods
    • OnScrollStateChangeListener
    • EndlessScrollListener
  • Overridden listeners
    • BubbleTextCreator
    • OnScrollStateChangeListener
    • AdapterCallback
    • ViewHolderCallback
  • Others listeners

Main exposed listeners

Usually an Activity or Fragment can be an instance of multiple listener. Optionally a listener can be an object of your preference. All you need to do is to pass the listeners object to the Constructor of the FlexibleAdapter OR to call the same function initializeListener(listener) for all main types of listeners.

OnUpdateListener
OnDeleteCompleteListener
OnItemClickListener
OnItemLongClickListener
OnActionStateListener
OnItemMoveListener
OnItemSwipeListener
OnStickyHeaderChangeListener

To be continued...

Listener exposed through methods

OnScrollStateChangeListener
EndlessScrollListener

To be continued...

Overridden listeners

BubbleTextCreator
OnScrollStateChangeListener
AdapterCallback
ViewHolderCallback

To be continued...

Others listeners

The list of listener is not finished :-)
There are more listeners that are covered in the dedicated pages for the ActionModeHelper and UndoHelper. However, here we just mention them:

  • Android ActionMode.Callback
  • UndoHelper listeners
    • OnActionListener
    • OnUndoListener

To be continued...

Clone this wiki locally