Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.leanback:leanback:1.1.0-alpha01

ParallaxTarget.PropertyValuesHolderTarget

public static final class ParallaxTarget.PropertyValuesHolderTarget
extends ParallaxTarget

java.lang.Object
   ↳ androidx.leanback.widget.ParallaxTarget
     ↳ androidx.leanback.widget.ParallaxTarget.PropertyValuesHolderTarget


PropertyValuesHolderTarget is an implementation of ParallaxTarget that uses PropertyValuesHolder to update the target object.

Summary

Public constructors

ParallaxTarget.PropertyValuesHolderTarget(Object targetObject, PropertyValuesHolder values)

Public methods

void update(float fraction)

Implementation class is supposed to update target with the provided fraction (between 0 and 1).

Inherited methods

Public constructors

ParallaxTarget.PropertyValuesHolderTarget

public ParallaxTarget.PropertyValuesHolderTarget (Object targetObject, 
                PropertyValuesHolder values)

Parameters
targetObject Object

values PropertyValuesHolder

Public methods

update

public void update (float fraction)

Implementation class is supposed to update target with the provided fraction (between 0 and 1). The fraction represents percentage of completed change (e.g. scroll) on target. Called only when isDirectMapping() is false.

Parameters
fraction float: Fraction between 0 to 1.