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 | |
---|---|
<init>() A helper class for showing a hover card view below a |
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 |
onViewSelected(view: View!) |
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.