HeadersFragment

Added in 1.1.0
Deprecated in 1.1.0

class HeadersFragment : 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 functions

ObjectAdapter!

Returns the Adapter that represents list of rows.

ItemBridgeAdapter!

Returns the RecyclerView.Adapter that wraps getAdapter.

PresenterSelector!

Get the presenter selector used to create and bind views.

Int

Gets position of currently selected row.

VerticalGridView!
Boolean
View?
onCreateView(
    inflater: LayoutInflater!,
    container: ViewGroup?,
    savedInstanceState: Bundle!
)

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit
Boolean
Unit
Unit
onViewCreated(view: View, savedInstanceState: Bundle?)

This function is deprecated.

Unit
setAdapter(rowsAdapter: ObjectAdapter!)

Sets the adapter that represents a list of rows.

Unit
setAlignment(windowAlignOffsetTop: Int)
Unit
Unit
Unit

Set the presenter selector used to create and bind views.

Unit

Sets the selected row position with smooth animation.

Unit
setSelectedPosition(position: Int, smooth: Boolean)

Sets the selected row position.

Inherited functions

From android.app.Fragment
Unit
dump(
    prefix: String!,
    fd: FileDescriptor!,
    writer: PrintWriter!,
    args: Array<String!>!
)

This function is deprecated.

Boolean
equals(o: Any!)

This function is deprecated.

Activity!

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Bundle!

This function is deprecated.

FragmentManager!

This function is deprecated.

Context!

This function is deprecated.

Transition!

This function is deprecated.

Transition!

This function is deprecated.

FragmentManager!

This function is deprecated.

Any!

This function is deprecated.

Int

This function is deprecated.

LayoutInflater!

This function is deprecated.

LoaderManager!

This function is deprecated.

Fragment!

This function is deprecated.

Transition!

This function is deprecated.

Resources!

This function is deprecated.

Boolean

This function is deprecated.

Transition!

This function is deprecated.

Transition!

This function is deprecated.

Transition!

This function is deprecated.

String!
getString(resId: Int)

This function is deprecated.

String!

This function is deprecated.

Fragment!

This function is deprecated.

Int

This function is deprecated.

CharSequence!
getText(resId: Int)

This function is deprecated.

Boolean

This function is deprecated.

View!

This function is deprecated.

Int

This function is deprecated.

java-static Fragment!
instantiate(context: Context!, fname: String!)

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Boolean

This function is deprecated.

Unit
onActivityCreated(savedInstanceState: Bundle!)

This function is deprecated.

Unit
onActivityResult(requestCode: Int, resultCode: Int, data: Intent!)

This function is deprecated.

Unit
onAttach(context: Context!)

This function is deprecated.

Unit
onAttachFragment(childFragment: Fragment!)

This function is deprecated.

Unit

This function is deprecated.

Boolean

This function is deprecated.

Unit
onCreate(savedInstanceState: Bundle!)

This function is deprecated.

Animator!
onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int)

This function is deprecated.

Unit
onCreateContextMenu(
    menu: ContextMenu!,
    v: View!,
    menuInfo: ContextMenu.ContextMenuInfo!
)

This function is deprecated.

Unit
onCreateOptionsMenu(menu: Menu!, inflater: MenuInflater!)

This function is deprecated.

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

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

LayoutInflater!
onGetLayoutInflater(savedInstanceState: Bundle!)

This function is deprecated.

Unit

This function is deprecated.

Unit
onInflate(attrs: AttributeSet!, savedInstanceState: Bundle!)

This function is deprecated.

Unit

This function is deprecated.

Unit
onMultiWindowModeChanged(
    isInMultiWindowMode: Boolean,
    newConfig: Configuration!
)

This function is deprecated.

Boolean

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit
onPictureInPictureModeChanged(
    isInPictureInPictureMode: Boolean,
    newConfig: Configuration!
)

This function is deprecated.

Unit

This function is deprecated.

Unit
onRequestPermissionsResult(
    requestCode: Int,
    permissions: Array<String!>!,
    grantResults: IntArray!
)

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit
onTrimMemory(level: Int)

This function is deprecated.

Unit
onViewCreated(view: View!, savedInstanceState: Bundle!)

This function is deprecated.

Unit
onViewStateRestored(savedInstanceState: Bundle!)

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit
requestPermissions(permissions: Array<String!>!, requestCode: Int)

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit
setMenuVisibility(menuVisible: Boolean)

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit
setTargetFragment(fragment: Fragment!, requestCode: Int)

This function is deprecated.

Unit
setUserVisibleHint(isVisibleToUser: Boolean)

This function is deprecated.

Boolean

This function is deprecated.

Unit

This function is deprecated.

Unit
startActivityForResult(intent: Intent!, requestCode: Int)

This function is deprecated.

Unit
startIntentSenderForResult(
    intent: IntentSender!,
    requestCode: Int,
    fillInIntent: Intent!,
    flagsMask: Int,
    flagsValues: Int,
    extraFlags: Int,
    options: Bundle!
)

This function is deprecated.

Unit

This function is deprecated.

String!

This function is deprecated.

Unit

This function is deprecated.

Public constructors

HeadersFragment

Added in 1.1.0
Deprecated in 1.1.0
HeadersFragment()

Public functions

getAdapter

Added in 1.1.0
Deprecated in 1.1.0
fun getAdapter(): ObjectAdapter!

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
fun getBridgeAdapter(): ItemBridgeAdapter!

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
fun getPresenterSelector(): PresenterSelector!

Get the presenter selector used to create and bind views.

getSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
fun getSelectedPosition(): Int

Gets position of currently selected row.

Returns
Int

Position of currently selected row.

getVerticalGridView

Added in 1.1.0
Deprecated in 1.1.0
fun getVerticalGridView(): VerticalGridView!

isScrolling

Added in 1.1.0
Deprecated in 1.1.0
fun isScrolling(): Boolean

onCreateView

Added in 1.1.0
Deprecated in 1.1.0
fun onCreateView(
    inflater: LayoutInflater!,
    container: ViewGroup?,
    savedInstanceState: Bundle!
): View?

onDestroyView

Added in 1.1.0
Deprecated in 1.1.0
fun onDestroyView(): Unit

onSaveInstanceState

Added in 1.1.0
Deprecated in 1.1.0
fun onSaveInstanceState(outState: Bundle!): Unit

onTransitionEnd

Added in 1.1.0
Deprecated in 1.1.0
fun onTransitionEnd(): Unit

onTransitionPrepare

Added in 1.1.0
Deprecated in 1.1.0
fun onTransitionPrepare(): Boolean

onTransitionStart

Added in 1.1.0
Deprecated in 1.1.0
fun onTransitionStart(): Unit

onViewCreated

Added in 1.1.0
Deprecated in 1.1.0
fun onViewCreated(view: View, savedInstanceState: Bundle?): Unit

setAdapter

Added in 1.1.0
Deprecated in 1.1.0
fun setAdapter(rowsAdapter: ObjectAdapter!): Unit

Sets the adapter that represents a list of rows.

Parameters
rowsAdapter: ObjectAdapter!

Adapter that represents list of rows.

setAlignment

Added in 1.1.0
Deprecated in 1.1.0
fun setAlignment(windowAlignOffsetTop: Int): Unit

setOnHeaderClickedListener

Added in 1.1.0
Deprecated in 1.1.0
fun setOnHeaderClickedListener(
    listener: HeadersFragment.OnHeaderClickedListener!
): Unit

setOnHeaderViewSelectedListener

Added in 1.1.0
Deprecated in 1.1.0
fun setOnHeaderViewSelectedListener(
    listener: HeadersFragment.OnHeaderViewSelectedListener!
): Unit

setPresenterSelector

Added in 1.1.0
Deprecated in 1.1.0
fun setPresenterSelector(presenterSelector: PresenterSelector!): Unit

Set the presenter selector used to create and bind views.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
fun setSelectedPosition(position: Int): Unit

Sets the selected row position with smooth animation.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
fun setSelectedPosition(position: Int, smooth: Boolean): Unit

Sets the selected row position.