Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.leanback:leanback:1.1.0-alpha01

RowsFragment.MainFragmentAdapter

public static class RowsFragment.MainFragmentAdapter
extends MainFragmentAdapter<RowsFragment>

java.lang.Object
   ↳ androidx.leanback.app.BrowseFragment.MainFragmentAdapter<androidx.leanback.app.RowsFragment>
     ↳ androidx.leanback.app.RowsFragment.MainFragmentAdapter


Summary

Public constructors

RowsFragment.MainFragmentAdapter(RowsFragment fragment)

Public methods

boolean isScrolling()

Returns whether its scrolling.

void onTransitionEnd()

Callback indicating transition end.

boolean onTransitionPrepare()

Callback indicating transition prepare start.

void onTransitionStart()

Callback indicating transition start.

void setAlignment(int windowAlignOffsetFromTop)

Sets the window alignment and also the pivots for scale operation.

void setEntranceTransitionState(boolean state)

For rows that willing to participate entrance transition, this function hide views if afterTransition is true, show views if afterTransition is false.

void setExpand(boolean expand)

Set the visibility of titles/hover card of browse rows.

Inherited methods

Public constructors

RowsFragment.MainFragmentAdapter

public RowsFragment.MainFragmentAdapter (RowsFragment fragment)

Parameters
fragment RowsFragment

Public methods

isScrolling

public boolean isScrolling ()

Returns whether its scrolling.

Returns
boolean

onTransitionEnd

public void onTransitionEnd ()

Callback indicating transition end.

onTransitionPrepare

public boolean onTransitionPrepare ()

Callback indicating transition prepare start.

Returns
boolean

onTransitionStart

public void onTransitionStart ()

Callback indicating transition start.

setAlignment

public void setAlignment (int windowAlignOffsetFromTop)

Sets the window alignment and also the pivots for scale operation.

Parameters
windowAlignOffsetFromTop int

setEntranceTransitionState

public void setEntranceTransitionState (boolean state)

For rows that willing to participate entrance transition, this function hide views if afterTransition is true, show views if afterTransition is false.

Parameters
state boolean

setExpand

public void setExpand (boolean expand)

Set the visibility of titles/hover card of browse rows.

Parameters
expand boolean