Interpolate On Scroll Position Change Helper
Helper class to handle shape interpolation when shaped views enter or exit the window.
Constructors
Link copied to clipboard
constructor(shapedView: View, materialShapeDrawable: MaterialShapeDrawable, containingScrollView: ScrollView)
Instantiate a scroll position helper.
Functions
Link copied to clipboard
Set the ScrollView which contains the View being interpolated.
Link copied to clipboard
Set the MaterialShapeDrawable which will be interpolated.
Link copied to clipboard
Start listening for scroll changes and interpolating based on position.
Link copied to clipboard
Stop listening for scroll changes and interpolating based on position.
Link copied to clipboard
Updates the MaterialShapeDrawable's interpolation based on the View's position in the containing ScrollView.