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

Implementation of Parallax class for RecyclerView.

Public methods

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

open Float

open RecyclerView!

open Unit
setRecyclerView(recyclerView: RecyclerView!)

Set RecyclerView that this Parallax will register onScrollListener.

open Unit

Manually update values.

Inherited functions

Public constructors

<init>

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.

Public methods

createProperty

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

getMaxValue

open fun getMaxValue(): Float

getRecyclerView

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

setRecyclerView

open fun setRecyclerView(recyclerView: RecyclerView!): Unit

Set RecyclerView that this Parallax will register onScrollListener.

Parameters
recyclerView RecyclerView!: RecyclerView to register onScrollListener.

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.