ParallaxTarget.PropertyValuesHolderTarget
public
static
final
class
ParallaxTarget.PropertyValuesHolderTarget
extends ParallaxTarget
PropertyValuesHolderTarget is an implementation of ParallaxTarget
that uses
PropertyValuesHolder
to update the target object.
Summary
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
androidx.leanback.widget.ParallaxTarget
void
|
directUpdate(Number value)
Directly update the target using a float or int value.
|
boolean
|
isDirectMapping()
Returns true if the ParallaxTarget is directly mapping from source value,
directUpdate(Number) will be used to update value, otherwise update(fraction) will
be called to update value.
|
void
|
update(float fraction)
Implementation class is supposed to update target with the provided fraction
(between 0 and 1).
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
PropertyValuesHolderTarget
public 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. |