RowsFragment.MainFragmentAdapter

Added in 1.1.0
Deprecated in 1.1.0

public class RowsFragment.MainFragmentAdapter extends BrowseFragment.MainFragmentAdapter


Summary

Public constructors

Public methods

boolean

Returns whether its scrolling.

void

Callback indicating transition end.

boolean

Callback indicating transition prepare start.

void

Callback indicating transition start.

void
setAlignment(int windowAlignOffsetFromTop)

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

void

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

From androidx.leanback.app.BrowseFragment.MainFragmentAdapter
final T
final BrowseFragment.FragmentHost

Returns the current host interface so that main fragment can interact with BrowseFragment.

boolean

Returns whether row scaling is enabled.

void
setScalingEnabled(boolean scalingEnabled)

Sets the row scaling property.

Public constructors

MainFragmentAdapter

Added in 1.1.0
Deprecated in 1.1.0
public MainFragmentAdapter(RowsFragment fragment)

Public methods

isScrolling

public boolean isScrolling()

Returns whether its scrolling.

onTransitionEnd

public void onTransitionEnd()

Callback indicating transition end.

onTransitionPrepare

public boolean onTransitionPrepare()

Callback indicating transition prepare start.

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.

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.

setExpand

public void setExpand(boolean expand)

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