added in version 22.1.0
belongs to Maven artifact


public class HeadersSupportFragment
extends Fragment


An fragment containing a list of row headers. Implementation must support three types of rows:

Use setPresenterSelector(PresenterSelector) in subclass constructor to customize Presenters. App may override onCreateHeadersSupportFragment().


Nested classes

interface HeadersSupportFragment.OnHeaderClickedListener

Interface definition for a callback to be invoked when a header item is clicked. 

interface HeadersSupportFragment.OnHeaderViewSelectedListener

Interface definition for a callback to be invoked when a header item is selected. 

Public constructors


Public methods

final ObjectAdapter getAdapter()

Returns the Adapter that represents list of rows.

final ItemBridgeAdapter getBridgeAdapter()

Returns the RecyclerView.Adapter that wraps getAdapter().

final PresenterSelector getPresenterSelector()

Get the presenter selector used to create and bind views.

int getSelectedPosition()

Gets position of currently selected row.

final VerticalGridView getVerticalGridView()
boolean isScrolling()
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Called to have the fragment instantiate its user interface view.

void onDestroyView()

Called when the view previously created by onCreateView(LayoutInflater, ViewGroup, Bundle) has been detached from the fragment.

void onSaveInstanceState(Bundle outState)

Called to ask the fragment to save its current dynamic state, so it can later be reconstructed in a new instance of its process is restarted.

void onTransitionEnd()
boolean onTransitionPrepare()