belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
Deprecated since version 27.1.0
RowsFragment.MainFragmentRowsAdapter
public
static
class
RowsFragment.MainFragmentRowsAdapter
extends MainFragmentRowsAdapter<RowsFragment>
java.lang.Object | ||
↳ | android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter<android.support.v17.leanback.app.RowsFragment> | |
↳ | android.support.v17.leanback.app.RowsFragment.MainFragmentRowsAdapter |
This class was deprecated
in API level 27.1.0.
use RowsSupportFragment
The adapter that RowsFragment implements BrowseFragment.MainFragmentRowsAdapter.
See also:
Summary
Public constructors | |
---|---|
RowsFragment.MainFragmentRowsAdapter(RowsFragment fragment)
|
Public methods | |
---|---|
RowPresenter.ViewHolder
|
findRowViewHolderByPosition(int position)
|
int
|
getSelectedPosition()
|
void
|
setAdapter(ObjectAdapter adapter)
Set the visibility titles/hover of browse rows. |
void
|
setOnItemViewClickedListener(OnItemViewClickedListener listener)
Sets an item clicked listener on the fragment. |
void
|
setOnItemViewSelectedListener(OnItemViewSelectedListener listener)
Sets an item selection listener. |
void
|
setSelectedPosition(int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)
Selects a Row and perform an optional task on the Row. |
void
|
setSelectedPosition(int rowPosition, boolean smooth)
Selects a Row. |
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter
| |
From
class
java.lang.Object
|
Public constructors
RowsFragment.MainFragmentRowsAdapter
RowsFragment.MainFragmentRowsAdapter (RowsFragment fragment)
Parameters | |
---|---|
fragment |
RowsFragment |
Public methods
findRowViewHolderByPosition
RowPresenter.ViewHolder findRowViewHolderByPosition (int position)
Parameters | |
---|---|
position |
int : Position of Row. |
Returns | |
---|---|
RowPresenter.ViewHolder |
Row ViewHolder. |
getSelectedPosition
int getSelectedPosition ()
Returns | |
---|---|
int |
The position of selected row. |
setAdapter
void setAdapter (ObjectAdapter adapter)
Set the visibility titles/hover of browse rows.
Parameters | |
---|---|
adapter |
ObjectAdapter |
setOnItemViewClickedListener
void setOnItemViewClickedListener (OnItemViewClickedListener listener)
Sets an item clicked listener on the fragment.
Parameters | |
---|---|
listener |
OnItemViewClickedListener |
setOnItemViewSelectedListener
void setOnItemViewSelectedListener (OnItemViewSelectedListener listener)
Sets an item selection listener.
Parameters | |
---|---|
listener |
OnItemViewSelectedListener |
setSelectedPosition
void setSelectedPosition (int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)
Selects a Row and perform an optional task on the Row.
Parameters | |
---|---|
rowPosition |
int |
smooth |
boolean |
rowHolderTask |
Presenter.ViewHolderTask |
setSelectedPosition
void setSelectedPosition (int rowPosition, boolean smooth)
Selects a Row.
Parameters | |
---|---|
rowPosition |
int |
smooth |
boolean |
Interfaces
- BrowseFragment.FragmentHost
- BrowseFragment.MainFragmentAdapterProvider
- BrowseFragment.MainFragmentRowsAdapterProvider
- BrowseSupportFragment.FragmentHost
- BrowseSupportFragment.MainFragmentAdapterProvider
- BrowseSupportFragment.MainFragmentRowsAdapterProvider
- HeadersFragment.OnHeaderClickedListener
- HeadersFragment.OnHeaderViewSelectedListener
- HeadersSupportFragment.OnHeaderClickedListener
- HeadersSupportFragment.OnHeaderViewSelectedListener
- SearchFragment.SearchResultProvider
- SearchSupportFragment.SearchResultProvider
Classes
- BackgroundManager
- BaseFragment
- BaseSupportFragment
- BrandedFragment
- BrandedSupportFragment
- BrowseFragment
- BrowseFragment.BrowseTransitionListener
- BrowseFragment.FragmentFactory
- BrowseFragment.ListRowFragmentFactory
- BrowseFragment.MainFragmentAdapter
- BrowseFragment.MainFragmentAdapterRegistry
- BrowseFragment.MainFragmentRowsAdapter
- BrowseSupportFragment
- BrowseSupportFragment.BrowseTransitionListener
- BrowseSupportFragment.FragmentFactory
- BrowseSupportFragment.ListRowFragmentFactory
- BrowseSupportFragment.MainFragmentAdapter
- BrowseSupportFragment.MainFragmentAdapterRegistry
- BrowseSupportFragment.MainFragmentRowsAdapter
- DetailsFragment
- DetailsFragmentBackgroundController
- DetailsSupportFragment
- DetailsSupportFragmentBackgroundController
- ErrorFragment
- ErrorSupportFragment
- GuidedStepFragment
- GuidedStepSupportFragment
- HeadersFragment
- HeadersSupportFragment
- OnboardingFragment
- OnboardingSupportFragment
- PlaybackFragment
- PlaybackFragmentGlueHost
- PlaybackSupportFragment
- PlaybackSupportFragmentGlueHost
- ProgressBarManager
- RowsFragment
- RowsFragment.MainFragmentAdapter
- RowsFragment.MainFragmentRowsAdapter
- RowsSupportFragment
- RowsSupportFragment.MainFragmentAdapter
- RowsSupportFragment.MainFragmentRowsAdapter
- SearchFragment
- SearchSupportFragment
- VerticalGridFragment
- VerticalGridSupportFragment
- VideoFragment
- VideoFragmentGlueHost
- VideoSupportFragment
- VideoSupportFragmentGlueHost