public class

RowsFragment.MainFragmentAdapter

extends BrowseFragment.MainFragmentAdapter<RowsFragment>

 java.lang.Object

androidx.leanback.app.BrowseFragment.MainFragmentAdapter<RowsFragment>

↳androidx.leanback.app.RowsFragment.MainFragmentAdapter

Summary

Constructors
publicMainFragmentAdapter(RowsFragment fragment)

Methods
public booleanisScrolling()

Returns whether its scrolling.

public voidonTransitionEnd()

Callback indicating transition end.

public booleanonTransitionPrepare()

Callback indicating transition prepare start.

public voidonTransitionStart()

Callback indicating transition start.

public voidsetAlignment(int windowAlignOffsetFromTop)

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

public voidsetEntranceTransitionState(boolean state)

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

public voidsetExpand(boolean expand)

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

from BrowseFragment.MainFragmentAdapter<T>getFragment, getFragmentHost, isScalingEnabled, setScalingEnabled
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public MainFragmentAdapter(RowsFragment fragment)

Methods

public boolean isScrolling()

Returns whether its scrolling.

public void setExpand(boolean expand)

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

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.

public void setAlignment(int windowAlignOffsetFromTop)

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

public boolean onTransitionPrepare()

Callback indicating transition prepare start.

public void onTransitionStart()

Callback indicating transition start.

public void onTransitionEnd()

Callback indicating transition end.