belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
Parallax.IntProperty
public
static
class
Parallax.IntProperty
extends Property<Parallax, Integer>
java.lang.Object | ||
↳ | android.util.Property<android.support.v17.leanback.widget.Parallax, java.lang.Integer> | |
↳ | android.support.v17.leanback.widget.Parallax.IntProperty |
Known Direct Subclasses |
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 |
int |
UNKNOWN_BEFORE
Property value is unknown and it's smaller than minimal value of Parallax. |
Public constructors | |
---|---|
Parallax.IntProperty(String name, int index)
Constructor. |
Public methods | |
---|---|
final
PropertyMarkerValue
|
at(int offsetValue, float fractionOfMaxParentVisibleSize)
Create an |
final
PropertyMarkerValue
|
atAbsolute(int absoluteValue)
Creates an |
final
PropertyMarkerValue
|
atFraction(float fractionOfMaxValue)
Creates an |
final
PropertyMarkerValue
|
atMax()
Creates an |
final
PropertyMarkerValue
|
atMin()
Creates an |
final
Integer
|
get(Parallax object)
|
final
int
|
getIndex()
|
final
int
|
getValue(Parallax object)
Fast version of get() method that returns a primitive int value of the Property. |
final
void
|
set(Parallax object, Integer value)
|
final
void
|
setValue(Parallax object, int value)
Fast version of set() method that takes a primitive int value into the Property. |
Inherited methods | |
---|---|
From
class
android.util.Property
| |
From
class
java.lang.Object
|
Constants
UNKNOWN_AFTER
int UNKNOWN_AFTER
Property value is unknown and it's larger than getMaxValue()
. For
example if a child is not created and after the last visible child of RecyclerView.
Constant Value: 2147483647 (0x7fffffff)
UNKNOWN_BEFORE
int UNKNOWN_BEFORE
Property value is unknown and it's smaller than minimal value of Parallax. For example if a child is not created and before the first visible child of RecyclerView.
Constant Value: -2147483648 (0x80000000)
Public constructors
Parallax.IntProperty
Parallax.IntProperty (String name, int index)
Constructor.
Parameters | |
---|---|
name |
String : Name of this Property. |
index |
int : Index of this Property inside Parallax .
|
Public methods
at
PropertyMarkerValue at (int offsetValue, float fractionOfMaxParentVisibleSize)
Create an Parallax.PropertyMarkerValue
object by multiplying the fraction with
getMaxValue()
and adding offsetValue to it.
Parameters | |
---|---|
offsetValue |
int : An offset integer value to be added to marker
value. |
fractionOfMaxParentVisibleSize |
float : 0 to 1 fraction to multiply with
getMaxValue() for
the marker value. |
Returns | |
---|---|
PropertyMarkerValue |
A new Parallax.PropertyMarkerValue object.
|
atAbsolute
PropertyMarkerValue atAbsolute (int absoluteValue)
Creates an Parallax.PropertyMarkerValue
object for the absolute marker value.
Parameters | |
---|---|
absoluteValue |
int : The integer marker value. |
Returns | |
---|---|
PropertyMarkerValue |
A new Parallax.PropertyMarkerValue object.
|
atFraction
PropertyMarkerValue atFraction (float fractionOfMaxValue)
Creates an Parallax.PropertyMarkerValue
object for a fraction of
getMaxValue()
.
Parameters | |
---|---|
fractionOfMaxValue |
float : 0 to 1 fraction to multiply with
getMaxValue() for
the marker value. |
Returns | |
---|---|
PropertyMarkerValue |
A new Parallax.PropertyMarkerValue object.
|
atMax
PropertyMarkerValue atMax ()
Creates an Parallax.PropertyMarkerValue
object for the marker value representing
getMaxValue()
.
Returns | |
---|---|
PropertyMarkerValue |
A new Parallax.PropertyMarkerValue object.
|
atMin
PropertyMarkerValue atMin ()
Creates an Parallax.PropertyMarkerValue
object for the marker value representing 0.
Returns | |
---|---|
PropertyMarkerValue |
A new Parallax.PropertyMarkerValue object.
|
get
Integer get (Parallax object)
Parameters | |
---|---|
object |
Parallax |
Returns | |
---|---|
Integer |
getValue
int getValue (Parallax object)
Fast version of get() method that returns a primitive int value of the Property.
Parameters | |
---|---|
object |
Parallax : The Parallax object that owns this Property. |
Returns | |
---|---|
int |
Int value of the Property. |
set
void set (Parallax object, Integer value)
Parameters | |
---|---|
object |
Parallax |
value |
Integer |
setValue
void setValue (Parallax object, int value)
Fast version of set() method that takes a primitive int value into the Property.
Parameters | |
---|---|
object |
Parallax : The Parallax object that owns this Property. |
value |
int : Int value of the Property.
|
Interfaces
- BaseGridView.OnKeyInterceptListener
- BaseGridView.OnMotionInterceptListener
- BaseGridView.OnTouchInterceptListener
- BaseGridView.OnUnhandledKeyListener
- BaseOnItemViewClickedListener
- BaseOnItemViewSelectedListener
- BrowseFrameLayout.OnChildFocusListener
- BrowseFrameLayout.OnFocusSearchListener
- FacetProvider
- FacetProviderAdapter
- FocusHighlight
- FragmentAnimationProvider
- ImeKeyMonitor
- ImeKeyMonitor.ImeKeyListener
- MultiActionsProvider
- OnActionClickedListener
- OnChildLaidOutListener
- OnChildSelectedListener
- OnItemViewClickedListener
- OnItemViewSelectedListener
- PlaybackSeekUi
- SearchBar.SearchBarListener
- SearchBar.SearchBarPermissionListener
- SearchEditText.OnKeyboardDismissListener
- SpeechRecognitionCallback
- TitleViewAdapter.Provider
- ViewHolderTask
Classes
- AbstractDetailsDescriptionPresenter
- AbstractDetailsDescriptionPresenter.ViewHolder
- AbstractMediaItemPresenter
- AbstractMediaItemPresenter.ViewHolder
- AbstractMediaListHeaderPresenter
- AbstractMediaListHeaderPresenter.ViewHolder
- Action
- ArrayObjectAdapter
- BaseCardView
- BaseCardView.LayoutParams
- BaseGridView
- BrowseFrameLayout
- ClassPresenterSelector
- ControlButtonPresenterSelector
- CursorObjectAdapter
- DetailsOverviewLogoPresenter
- DetailsOverviewLogoPresenter.ViewHolder
- DetailsOverviewRow
- DetailsOverviewRow.Listener
- DetailsOverviewRowPresenter
- DetailsOverviewRowPresenter.ViewHolder
- DetailsParallax
- DiffCallback
- DividerPresenter
- DividerRow
- FocusHighlightHelper
- FullWidthDetailsOverviewRowPresenter
- FullWidthDetailsOverviewRowPresenter.Listener
- FullWidthDetailsOverviewRowPresenter.ViewHolder
- FullWidthDetailsOverviewRowPresenter.ViewHolder.DetailsOverviewRowListener
- FullWidthDetailsOverviewSharedElementHelper
- GuidanceStylist
- GuidanceStylist.Guidance
- GuidedAction
- GuidedAction.Builder
- GuidedAction.BuilderBase
- GuidedActionDiffCallback
- GuidedActionEditText
- GuidedActionsStylist
- GuidedActionsStylist.ViewHolder
- GuidedDatePickerAction
- GuidedDatePickerAction.Builder
- GuidedDatePickerAction.BuilderBase
- HeaderItem
- HorizontalGridView
- HorizontalHoverCardSwitcher
- ImageCardView
- ItemAlignmentFacet
- ItemAlignmentFacet.ItemAlignmentDef
- ItemBridgeAdapter
- ItemBridgeAdapter.AdapterListener
- ItemBridgeAdapter.ViewHolder
- ItemBridgeAdapter.Wrapper
- ItemBridgeAdapterShadowOverlayWrapper
- ListRow
- ListRowHoverCardView
- ListRowPresenter
- ListRowPresenter.SelectItemViewHolderTask
- ListRowPresenter.ViewHolder
- ListRowView
- MultiActionsProvider.MultiAction
- ObjectAdapter
- ObjectAdapter.DataObserver
- OnChildViewHolderSelectedListener
- PageRow
- Parallax
- Parallax.FloatProperty
- Parallax.IntProperty
- Parallax.PropertyMarkerValue
- ParallaxEffect
- ParallaxTarget
- ParallaxTarget.DirectPropertyTarget
- ParallaxTarget.PropertyValuesHolderTarget
- PlaybackControlsRow
- PlaybackControlsRow.ClosedCaptioningAction
- PlaybackControlsRow.FastForwardAction
- PlaybackControlsRow.HighQualityAction
- PlaybackControlsRow.MoreActions
- PlaybackControlsRow.MultiAction
- PlaybackControlsRow.OnPlaybackProgressCallback
- PlaybackControlsRow.PictureInPictureAction
- PlaybackControlsRow.PlayPauseAction
- PlaybackControlsRow.RepeatAction
- PlaybackControlsRow.RewindAction
- PlaybackControlsRow.ShuffleAction
- PlaybackControlsRow.SkipNextAction
- PlaybackControlsRow.SkipPreviousAction
- PlaybackControlsRow.ThumbsAction
- PlaybackControlsRow.ThumbsDownAction
- PlaybackControlsRow.ThumbsUpAction
- PlaybackControlsRowPresenter
- PlaybackControlsRowPresenter.ViewHolder
- PlaybackRowPresenter
- PlaybackRowPresenter.ViewHolder
- PlaybackSeekDataProvider
- PlaybackSeekDataProvider.ResultCallback
- PlaybackSeekUi.Client
- PlaybackTransportRowPresenter
- PlaybackTransportRowPresenter.ViewHolder
- Presenter
- Presenter.ViewHolder
- Presenter.ViewHolderTask
- PresenterSelector
- PresenterSwitcher
- RecyclerViewParallax
- RecyclerViewParallax.ChildPositionProperty
- Row
- RowHeaderPresenter
- RowHeaderPresenter.ViewHolder
- RowHeaderView
- RowPresenter
- RowPresenter.ViewHolder
- SearchBar
- SearchEditText
- SearchOrbView
- SearchOrbView.Colors
- SectionRow
- ShadowOverlayContainer
- ShadowOverlayHelper
- ShadowOverlayHelper.Builder
- ShadowOverlayHelper.Options
- SinglePresenterSelector
- SparseArrayObjectAdapter
- SpeechOrbView
- TitleHelper
- TitleView
- TitleViewAdapter
- VerticalGridPresenter
- VerticalGridPresenter.ViewHolder
- VerticalGridView