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

Parallax.FloatProperty

public static class Parallax.FloatProperty
extends Property<Parallax, Float>

java.lang.Object
   ↳ android.util.Property<android.support.v17.leanback.widget.Parallax, java.lang.Float>
     ↳ android.support.v17.leanback.widget.Parallax.FloatProperty


FloatProperty provide access to an index based integer type property inside Parallax. The FloatProperty typically represents UI element position inside Parallax.

Summary

Constants

float UNKNOWN_AFTER

Property value is unknown and it's larger than getMaxValue().

float UNKNOWN_BEFORE

Property value is unknown and it's smaller than minimal value of Parallax.

Public constructors

Parallax.FloatProperty(String name, int index)

Constructor.

Public methods

final PropertyMarkerValue at(float offsetValue, float fractionOfMaxParentVisibleSize)

Create an Parallax.PropertyMarkerValue object by multiplying the fraction with getMaxValue() and adding offsetValue to it.

final PropertyMarkerValue atAbsolute(float markerValue)

Creates an Parallax.PropertyMarkerValue object for the absolute marker value.

final PropertyMarkerValue atFraction(float fractionOfMaxParentVisibleSize)

Creates an Parallax.PropertyMarkerValue object for a fraction of getMaxValue().

final PropertyMarkerValue atMax()

Creates an Parallax.PropertyMarkerValue object for the marker value representing getMaxValue().

final PropertyMarkerValue atMin()

Creates an Parallax.PropertyMarkerValue object for the marker value representing 0.

final Float get(Parallax object)
final int getIndex()
final float getValue(Parallax object)

Fast version of get() method that returns a primitive int value of the Property.

final void set(Parallax object, Float value)
final void setValue(Parallax object, float value)

Fast version of set() method that takes a primitive float value into the Property.

Inherited methods