Google 致力于为黑人社区推动种族平等。查看具体举措

HorizontalHoverCardSwitcher

class HorizontalHoverCardSwitcher : PresenterSwitcher
kotlin.Any
   ↳ androidx.leanback.widget.PresenterSwitcher
   ↳ androidx.leanback.widget.HorizontalHoverCardSwitcher

A helper class for showing a hover card view below a HorizontalGridView. The hover card is aligned to the starting edge of the selected child view. If there is no space when scrolling to the end, the ending edge of the hover card will be aligned to the ending edge of the parent view, excluding padding.

Summary

Public constructors

A helper class for showing a hover card view below a HorizontalGridView.

Public methods
Unit
select(gridView: HorizontalGridView!, childView: View!, object: Any!)

Select a childView inside a grid view and create/bind a corresponding hover card view for the object.

Protected methods
Unit
insertView(view: View!)

Unit

Inherited functions

Public constructors

<init>

HorizontalHoverCardSwitcher()

A helper class for showing a hover card view below a HorizontalGridView. The hover card is aligned to the starting edge of the selected child view. If there is no space when scrolling to the end, the ending edge of the hover card will be aligned to the ending edge of the parent view, excluding padding.

Public methods

select

fun select(
    gridView: HorizontalGridView!,
    childView: View!,
    object: Any!
): Unit

Select a childView inside a grid view and create/bind a corresponding hover card view for the object.

Protected methods

insertView

protected fun insertView(view: View!): Unit

onViewSelected

protected fun onViewSelected(view: View!): Unit