lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha3

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

public DetailsParallax ()

Public methods

getOverviewRowBottom

public Parallax.IntProperty getOverviewRowBottom ()

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

Returns
Parallax.IntProperty

getOverviewRowTop

public Parallax.IntProperty getOverviewRowTop ()

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

Returns
Parallax.IntProperty
{"cc_re__cc_re__cc_by_3_0": ["r.ViewHolder.html\">VerticalGridPresenter.ViewHolder</a></li>\n          <li class=\"api apilevel-\"><a href=\"https://developer.android.com/reference/androidx/leanback/widget/VerticalGridView.html\">VerticalGridView</a></li>\n      </ul>\n    </li>\n    \n    \n    \n  </ul>\n  \n</div>\n\n\n\n</div><!-- end devsite ReferenceObject -->\n\n  </div>\n  \n\n  \n        \n  \n\n\n\n\n\n\n\n        \n<div class=\"devsite-content-footer nocontent\">\n  \n  \n    <p>Except as otherwise noted, the content of this page is licensed under the <a href=\"https://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution 3.0 License</a>, and code samples are licensed under the <a href=\"https://www.apache.org/licenses/LICENSE-2.0\">Apache 2.0 License</a>. For details, see our <a href=\"https://developers.google.com/terms/site-policies\">Site Policies</a>. Java is a registered trademark of Oracle and/or its affiliates.</p>\n  \n\n  \n    \n    <p class=\"devsite-content-footer-date\" itemprop=\"datePublished\"\n       content=\"2018-06-06T19:33:48.709670\">\n      \n      Last updated June 6, 2018.\n   "]}