HeadersFragment

Added in 1.1.0
Deprecated in 1.1.0

public class HeadersFragment extends Fragment


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

Use setPresenterSelector in subclass constructor to customize Presenters. App may override onCreateHeadersFragment.

Summary

Nested types

This interface is deprecated.

use HeadersSupportFragment

This interface is deprecated.

use HeadersSupportFragment

Public constructors

Public methods

final ObjectAdapter

Returns the Adapter that represents list of rows.

final ItemBridgeAdapter

Returns the RecyclerView.Adapter that wraps getAdapter.

final PresenterSelector

Get the presenter selector used to create and bind views.

int

Gets position of currently selected row.

final VerticalGridView
boolean
@Nullable View
onCreateView(
    LayoutInflater inflater,
    @Nullable ViewGroup container,
    Bundle savedInstanceState
)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
boolean
void
void
onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)

This method is deprecated.

final void

Sets the adapter that represents a list of rows.

void
setAlignment(int windowAlignOffsetTop)
void
void
final void

Set the presenter selector used to create and bind views.

void
setSelectedPosition(int position)

Sets the selected row position with smooth animation.

void
setSelectedPosition(int position, boolean smooth)

Sets the selected row position.

Inherited Constants

From android.content.ComponentCallbacks2
static final int
static final int
static final int
static final int
static final int
static final int
static final int

Inherited methods

From android.app.Fragment
void
dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args)

This method is deprecated.

final boolean

This method is deprecated.

final Activity

This method is deprecated.

boolean

This method is deprecated.

boolean

This method is deprecated.

final Bundle

This method is deprecated.

final FragmentManager

This method is deprecated.

Context

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

final FragmentManager

This method is deprecated.

final Object

This method is deprecated.

final int

This method is deprecated.

final LayoutInflater

This method is deprecated.

LoaderManager

This method is deprecated.

final Fragment

This method is deprecated.

Transition

This method is deprecated.

final Resources

This method is deprecated.

final boolean

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

final String
getString(int resId)

This method is deprecated.

final String

This method is deprecated.

final Fragment

This method is deprecated.

final int

This method is deprecated.

final CharSequence
getText(int resId)

This method is deprecated.

boolean

This method is deprecated.

View

This method is deprecated.

final int

This method is deprecated.

static Fragment
instantiate(Context context, String fname)

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

void
onActivityCreated(Bundle savedInstanceState)

This method is deprecated.

void
onActivityResult(int requestCode, int resultCode, Intent data)

This method is deprecated.

void
onAttach(Context context)

This method is deprecated.

void
onAttachFragment(Fragment childFragment)

This method is deprecated.

void

This method is deprecated.

boolean

This method is deprecated.

void
onCreate(Bundle savedInstanceState)

This method is deprecated.

Animator
onCreateAnimator(int transit, boolean enter, int nextAnim)

This method is deprecated.

void
onCreateContextMenu(
    ContextMenu menu,
    View v,
    ContextMenu.ContextMenuInfo menuInfo
)

This method is deprecated.

void

This method is deprecated.

View
onCreateView(
    LayoutInflater inflater,
    ViewGroup container,
    Bundle savedInstanceState
)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

LayoutInflater
onGetLayoutInflater(Bundle savedInstanceState)

This method is deprecated.

void
onHiddenChanged(boolean hidden)

This method is deprecated.

void
onInflate(AttributeSet attrs, Bundle savedInstanceState)

This method is deprecated.

void

This method is deprecated.

void
onMultiWindowModeChanged(
    boolean isInMultiWindowMode,
    Configuration newConfig
)

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onPictureInPictureModeChanged(
    boolean isInPictureInPictureMode,
    Configuration newConfig
)

This method is deprecated.

void

This method is deprecated.

void
onRequestPermissionsResult(
    int requestCode,
    String[] permissions,
    int[] grantResults
)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onTrimMemory(int level)

This method is deprecated.

void
onViewCreated(View view, Bundle savedInstanceState)

This method is deprecated.

void
onViewStateRestored(Bundle savedInstanceState)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

final void
requestPermissions(String[] permissions, int requestCode)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setHasOptionsMenu(boolean hasMenu)

This method is deprecated.

void

This method is deprecated.

void
setMenuVisibility(boolean menuVisible)

This method is deprecated.

void

This method is deprecated.

void
setRetainInstance(boolean retain)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setTargetFragment(Fragment fragment, int requestCode)

This method is deprecated.

void
setUserVisibleHint(boolean isVisibleToUser)

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void
startActivityForResult(Intent intent, int requestCode)

This method is deprecated.

void
startIntentSenderForResult(
    IntentSender intent,
    int requestCode,
    Intent fillInIntent,
    int flagsMask,
    int flagsValues,
    int extraFlags,
    Bundle options
)

This method is deprecated.

void

This method is deprecated.

String

This method is deprecated.

void

This method is deprecated.

Public constructors

HeadersFragment

Added in 1.1.0
Deprecated in 1.1.0
public HeadersFragment()

Public methods

getAdapter

Added in 1.1.0
Deprecated in 1.1.0
public final ObjectAdapter getAdapter()

Returns the Adapter that represents list of rows.

Returns
ObjectAdapter

Adapter that represents list of rows.

getBridgeAdapter

Added in 1.1.0
Deprecated in 1.1.0
public final ItemBridgeAdapter getBridgeAdapter()

Returns the RecyclerView.Adapter that wraps getAdapter.

Returns
ItemBridgeAdapter

The RecyclerView.Adapter that wraps getAdapter.

getPresenterSelector

Added in 1.1.0
Deprecated in 1.1.0
public final PresenterSelector getPresenterSelector()

Get the presenter selector used to create and bind views.

getSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public int getSelectedPosition()

Gets position of currently selected row.

Returns
int

Position of currently selected row.

getVerticalGridView

Added in 1.1.0
Deprecated in 1.1.0
public final VerticalGridView getVerticalGridView()

isScrolling

Added in 1.1.0
Deprecated in 1.1.0
public boolean isScrolling()

onCreateView

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable View onCreateView(
    LayoutInflater inflater,
    @Nullable ViewGroup container,
    Bundle savedInstanceState
)

onDestroyView

Added in 1.1.0
Deprecated in 1.1.0
public void onDestroyView()

onSaveInstanceState

Added in 1.1.0
Deprecated in 1.1.0
public void onSaveInstanceState(Bundle outState)

onTransitionEnd

Added in 1.1.0
Deprecated in 1.1.0
public void onTransitionEnd()

onTransitionPrepare

Added in 1.1.0
Deprecated in 1.1.0
public boolean onTransitionPrepare()

onTransitionStart

Added in 1.1.0
Deprecated in 1.1.0
public void onTransitionStart()

onViewCreated

Added in 1.1.0
Deprecated in 1.1.0
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)

setAdapter

Added in 1.1.0
Deprecated in 1.1.0
public final void setAdapter(ObjectAdapter rowsAdapter)

Sets the adapter that represents a list of rows.

Parameters
ObjectAdapter rowsAdapter

Adapter that represents list of rows.

setAlignment

Added in 1.1.0
Deprecated in 1.1.0
public void setAlignment(int windowAlignOffsetTop)

setOnHeaderClickedListener

Added in 1.1.0
Deprecated in 1.1.0
public void setOnHeaderClickedListener(
    HeadersFragment.OnHeaderClickedListener listener
)

setOnHeaderViewSelectedListener

Added in 1.1.0
Deprecated in 1.1.0
public void setOnHeaderViewSelectedListener(
    HeadersFragment.OnHeaderViewSelectedListener listener
)

setPresenterSelector

Added in 1.1.0
Deprecated in 1.1.0
public final void setPresenterSelector(PresenterSelector presenterSelector)

Set the presenter selector used to create and bind views.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public void setSelectedPosition(int position)

Sets the selected row position with smooth animation.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public void setSelectedPosition(int position, boolean smooth)

Sets the selected row position.