Parallax.IntProperty

public static class Parallax.IntProperty
extends Property<Parallax, Integer>

java.lang.Object
   ↳ android.util.Property<androidx.leanback.widget.Parallax, java.lang.Integer>
     ↳ androidx.leanback.widget.Parallax.IntProperty


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

Summary

Constants

int UNKNOWN_AFTER

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

int UNKNOWN_BEFORE

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

Public constructors

IntProperty(String name, int index)

Constructor.

Public methods

final PropertyMarkerValue at(int offsetValue, float fractionOfMaxParentVisibleSize)

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

final PropertyMarkerValue atAbsolute(int absoluteValue)

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

final PropertyMarkerValue atFraction(float fractionOfMaxValue)

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

final PropertyMarkerValue atMax()

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

final PropertyMarkerValue atMin()

Creates an