RecyclerViewParallax

open class RecyclerViewParallax : Parallax<RecyclerViewParallax.ChildPositionProperty!>
kotlin.Any
   ↳ androidx.leanback.widget.Parallax<androidx.leanback.widget.RecyclerViewParallax.ChildPositionProperty>
   ↳ androidx.leanback.widget.RecyclerViewParallax

Implementation of Parallax class for RecyclerView. This class allows users to track position of specific views inside RecyclerView relative to itself. @see ChildPositionProperty for details.

Summary

Nested classes

Subclass of Parallax.IntProperty.

Public constructors

Public methods
open Float

open RecyclerView!

open RecyclerViewParallax.ChildPositionProperty!
createProperty(name: String!, index: Int)

open Unit

Manually update values.

open Unit
setRecyclerView(recyclerView: RecyclerView!)

Set RecyclerView that this Parallax will register onScrollListener.

Inherited functions

Public constructors

<init>

RecyclerViewParallax()

Public methods

getMaxValue

open fun getMaxValue(): Float

getRecyclerView

open fun getRecyclerView(): RecyclerView!
Return
RecyclerView!: Currently RecylerView that the source has registered onScrollListener.

createProperty

open fun createProperty(name: String!, index: Int): RecyclerViewParallax.ChildPositionProperty!

updateValues

open fun updateValues(): Unit

Manually update values. This is used for changes not controlled by RecyclerView. E.g. called by a Slide transition that changes translation of the view.

setRecyclerView

open fun setRecyclerView(recyclerView: RecyclerView!): Unit

Set RecyclerView that this Parallax will register onScrollListener.

Parameters
recyclerView RecyclerView!: RecyclerView to register onScrollListener.