RecyclerViewParallax
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
class
RecyclerViewParallax
extends Parallax <RecyclerViewParallax.ChildPositionProperty >
Known Direct Subclasses
DetailsParallax
Subclass of Parallax object that tracks overview row's top and bottom edge in DetailsFragment
or DetailsSupportFragment.
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
.
Inherited methods
From
class
android.support.v17.leanback.widget.Parallax
From
class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class<?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
Public constructors
RecyclerViewParallax
RecyclerViewParallax ()
Public methods
getMaxValue
float getMaxValue ()
Return the max value which is typically size of parent visible area, e.g. RecyclerView's
height if we are tracking Y position of a child. The size can be used to calculate marker
value using the provided fraction of FloatPropertyMarkerValue.
Returns
float
Size of parent visible area.
getRecyclerView
RecyclerView getRecyclerView ()
Returns
RecyclerView
Currently RecylerView that the source has registered onScrollListener.
setRecyclerView
void setRecyclerView (RecyclerView recyclerView)
Set RecyclerView that this Parallax will register onScrollListener.
Parameters
recyclerView
RecyclerView
: RecyclerView to register onScrollListener.
updateValues
void updateValues ()
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.