BrowseFragment.MainFragmentRowsAdapter

Added in 1.1.0
Deprecated in 1.1.0

public class BrowseFragment.MainFragmentRowsAdapter<T extends Fragment>


This is used to pass information to RowsFragment or its subclasses. BrowseFragment uses this interface to pass row based interaction events to the target fragment.

Summary

Public constructors

Public methods

RowPresenter.ViewHolder
final T
int
void

Set the visibility titles/hover of browse rows.

void

Sets an item clicked listener on the fragment.

void

Sets an item selection listener.

void
setSelectedPosition(int rowPosition, boolean smooth)

Selects a Row.

void
setSelectedPosition(
    int rowPosition,
    boolean smooth,
    Presenter.ViewHolderTask rowHolderTask
)

Selects a Row and perform an optional task on the Row.

Public constructors

MainFragmentRowsAdapter

Added in 1.1.0
Deprecated in 1.1.0
public MainFragmentRowsAdapter(T fragment)

Public methods

findRowViewHolderByPosition

Added in 1.1.0
Deprecated in 1.1.0
public RowPresenter.ViewHolder findRowViewHolderByPosition(int position)
Parameters
int position

Position of Row.

Returns
RowPresenter.ViewHolder

Row ViewHolder.

getFragment

Added in 1.1.0
Deprecated in 1.1.0
public final T getFragment()

getSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public int getSelectedPosition()
Returns
int

The position of selected row.

setAdapter

Added in 1.1.0
Deprecated in 1.1.0
public void setAdapter(ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

setOnItemViewClickedListener

Added in 1.1.0
Deprecated in 1.1.0
public void setOnItemViewClickedListener(OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

setOnItemViewSelectedListener

Added in 1.1.0
Deprecated in 1.1.0
public void setOnItemViewSelectedListener(OnItemViewSelectedListener listener)

Sets an item selection listener.

setSelectedPosition

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

Selects a Row.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public void setSelectedPosition(
    int rowPosition,
    boolean smooth,
    Presenter.ViewHolderTask rowHolderTask
)

Selects a Row and perform an optional task on the Row.

A well-designed custom view is much like any other well-designed class. It encapsulates a specific set of functionality with an easy-to-use interface, it uses CPU and memory efficiently, and so forth. In addition to being a well-designed class, though…

Updated Jun 27, 2024

Request location permission in Android 1

Updated Sep 21, 2023

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Apr 4, 2024