added in version 25.4.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ParallaxTarget.PropertyValuesHolderTarget

public static final class ParallaxTarget.PropertyValuesHolderTarget
extends ParallaxTarget

java.lang.Object
   ↳ android.support.v17.leanback.widget.ParallaxTarget
     ↳ android.support.v17.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

From class android.support.v17.leanback.widget.ParallaxTarget
From class java.lang.Object

Public constructors

ParallaxTarget.PropertyValuesHolderTarget

added in version 25.4.0
ParallaxTarget.PropertyValuesHolderTarget (Object targetObject, 
                PropertyValuesHolder values)

Parameters
targetObject Object

values PropertyValuesHolder

Public methods

update

added in version 25.4.0
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.