Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-rc01

DetailsParallax

public class DetailsParallax
extends RecyclerViewParallax

java.lang.Object
   ↳ androidx.leanback.widget.Parallax<androidx.leanback.widget.RecyclerViewParallax.ChildPositionProperty>
     ↳ androidx.leanback.widget.RecyclerViewParallax
       ↳ androidx.leanback.widget.DetailsParallax


Subclass of Parallax object that tracks overview row's top and bottom edge in DetailsFragment or DetailsSupportFragment.

It can be used for both creating cover image parallax effect and controlling video playing when transitioning to/from half/full screen. A direct use case is DetailsFragmentBackgroundController.

Summary

Public constructors

DetailsParallax()

Public methods

Parallax.IntProperty getOverviewRowBottom()

Returns the bottom of the details overview row.

Parallax.IntProperty getOverviewRowTop()

Returns the top of the details overview row.

Inherited methods

Public constructors

DetailsParallax

added in version 1.0.0
public DetailsParallax ()

Public methods

getOverviewRowBottom

added in version 1.0.0
public Parallax.IntProperty getOverviewRowBottom ()

Returns the bottom of the details overview row. This is tracked for implementing the parallax effect.

Returns
Parallax.IntProperty

getOverviewRowTop

added in version 1.0.0
public Parallax.IntProperty getOverviewRowTop ()

Returns the top of the details overview row. This is tracked for implementing the parallax effect.

Returns
Parallax.IntProperty