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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-11 UTC.",
"state": ""
}