이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

MainFragmentRowsAdapter

open class MainFragmentRowsAdapter : BrowseSupportFragment.MainFragmentRowsAdapter<RowsSupportFragment!>
kotlin.Any
   ↳ androidx.leanback.app.BrowseSupportFragment.MainFragmentRowsAdapter<androidx.leanback.app.RowsSupportFragment>
   ↳ androidx.leanback.app.RowsSupportFragment.MainFragmentRowsAdapter

The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter.

Summary

Public constructors

Public methods

open RowPresenter.ViewHolder!

open Int

open Unit

open Unit

Sets an item clicked listener on the fragment.

open Unit

open Unit
setSelectedPosition(rowPosition: Int, smooth: Boolean, rowHolderTask: Presenter.ViewHolderTask!)

open Unit
setSelectedPosition(rowPosition: Int, smooth: Boolean)

Inherited functions

Public constructors

<init>

MainFragmentRowsAdapter(fragment: RowsSupportFragment!)

Public methods

findRowViewHolderByPosition

open fun findRowViewHolderByPosition(position: Int): RowPresenter.ViewHolder!

getSelectedPosition

open fun getSelectedPosition(): Int

setAdapter

open fun setAdapter(adapter: ObjectAdapter!): Unit

setOnItemViewClickedListener

open fun setOnItemViewClickedListener(listener: OnItemViewClickedListener!): Unit

Sets an item clicked listener on the fragment.

setOnItemViewSelectedListener

open fun setOnItemViewSelectedListener(listener: OnItemViewSelectedListener!): Unit

setSelectedPosition

open fun setSelectedPosition(
    rowPosition: Int,
    smooth: Boolean,
    rowHolderTask: Presenter.ViewHolderTask!
): Unit

setSelectedPosition

open fun setSelectedPosition(
    rowPosition: Int,
    smooth: Boolean
): Unit