Subclass of Parallax object that tracks overview row's top and bottom edge in DetailsFragment
or DetailsSupportFragment.
Parallax tracks a list of dynamic Propertys typically representing foreground UI
element positions on screen. Parallax keeps a list of ParallaxEffect objects which define
rules to mapping property values to ParallaxTarget.
Example:
// when Property "var1" changes from 15 to max value, perform parallax effect to
// change myView's translationY from 0 to 100.
Parallax parallax = new Parallax() {...};
p1 = parallax.addProperty("var1");
parallax.addEffect(p1.at(15), p1.atMax())
.target(myView, PropertyValuesHolder.ofFloat("translationY", 0, 100));
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]