added in version 25.4.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

RecyclerViewParallax

public class RecyclerViewParallax
extends Parallax<RecyclerViewParallax.ChildPositionProperty>

java.lang.Object
   ↳ android.support.v17.leanback.widget.Parallax<android.support.v17.leanback.widget.RecyclerViewParallax.ChildPositionProperty>
     ↳ android.support.v17.leanback.widget.RecyclerViewParallax
Known Direct Subclasses


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

Summary

Nested classes

class RecyclerViewParallax.ChildPositionProperty

Subclass of Parallax.IntProperty

Public constructors

RecyclerViewParallax()

Public methods

RecyclerViewParallax.ChildPositionProperty createProperty(String name, int index)

Create a new Property object.

float getMaxValue()

Return the max value which is typically size of parent visible area, e.g.

RecyclerView getRecyclerView()
void setRecyclerView(RecyclerView recyclerView)

Set RecyclerView that this Parallax will register onScrollListener.

void updateValues()

Manually update values.

Inherited methods

From class android.support.v17.leanback.widget.Parallax