belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
ParallaxTarget
public
abstract
class
ParallaxTarget
extends Object
java.lang.Object | |
↳ | android.support.v17.leanback.widget.ParallaxTarget |
![]() ParallaxTarget.DirectPropertyTarget<T, V extends Number>,ParallaxTarget.PropertyValuesHolderTarget
|
ParallaxTarget is responsible for updating the target through the update(float)
method
or the directUpdate(Number)
method when isDirectMapping()
is true.
When isDirectMapping()
is false, ParallaxEffect
transforms the values of
Parallax
, which represents the current state of UI, into a float value between 0 and 1.
That float value is passed into update(float)
method.
Summary
Nested classes | |
---|---|
class |
ParallaxTarget.DirectPropertyTarget<T, V extends Number>
DirectPropertyTarget is to support direct mapping into either Integer Property or Float Property. |
class |
ParallaxTarget.PropertyValuesHolderTarget
PropertyValuesHolderTarget is an implementation of |
Public constructors | |
---|---|
ParallaxTarget()
|
Public methods | |
---|---|
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,
|
void
|
update(float fraction)
Implementation class is supposed to update target with the provided fraction (between 0 and 1). |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public constructors
Public methods
directUpdate
void directUpdate (Number value)
Directly update the target using a float or int value. Called when isDirectMapping()
is true.
Parameters | |
---|---|
value |
Number : Either int or float value.< |