belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
RecyclerView.ItemAnimator.ItemHolderInfo
public
static
class
RecyclerView.ItemAnimator.ItemHolderInfo
extends Object
java.lang.Object | |
↳ | android.support.v7.widget.RecyclerView.ItemAnimator.ItemHolderInfo |
A simple data structure that holds information about an item's bounds.
This information is used in calculating item animations. Default implementation of
recordPreLayoutInformation(RecyclerView.State, ViewHolder, int, List)
and
recordPostLayoutInformation(RecyclerView.State, ViewHolder)
returns this data
structure. You can extend this class if you would like to keep more information about
the Views.
If you want to provide your own implementation but still use `super` methods to record
basic information, you can override obtainHolderInfo()
to provide your own
instances.
Summary
Fields | |
---|---|
public
int |
bottom
The bottom edge of the View (excluding decorations) |
public
int |
changeFlags
The change flags that were passed to
|
public
int |
left
The left edge of the View (excluding decorations) |
public
int |
right
The right edge of the View (excluding decorations) |
public
int |
top
The top edge of the View (excluding decorations) |
Public constructors | |
---|---|
RecyclerView.ItemAnimator.ItemHolderInfo()
|
Public methods | |
---|---|
RecyclerView.ItemAnimator.ItemHolderInfo
|
setFrom(RecyclerView.ViewHolder holder, int flags)
Sets the |
RecyclerView.ItemAnimator.ItemHolderInfo
|
setFrom(RecyclerView.ViewHolder holder)
Sets the |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Fields
changeFlags
int changeFlags
The change flags that were passed to
recordPreLayoutInformation(RecyclerView.State, ViewHolder, int, List)
.
Public constructors
RecyclerView.ItemAnimator.ItemHolderInfo
RecyclerView.ItemAnimator.ItemHolderInfo ()
Public methods
setFrom
RecyclerView.ItemAnimator.ItemHolderInfo setFrom (RecyclerView.ViewHolder holder, int flags)
Sets the left
, top
, right
and bottom
values from
the given ViewHolder and sets the changeFlags
to the given flags parameter.
Parameters | |
---|---|
holder |
RecyclerView.ViewHolder : The ViewHolder whose bounds should be copied. |
flags |
int : The adapter change flags that were passed into
recordPreLayoutInformation(RecyclerView.State, ViewHolder, int, List) . |
Returns | |
---|---|
RecyclerView.ItemAnimator.ItemHolderInfo |
This RecyclerView.ItemAnimator.ItemHolderInfo
|
setFrom
RecyclerView.ItemAnimator.ItemHolderInfo setFrom (RecyclerView.ViewHolder holder)
Sets the left
, top
, right
and bottom
values from
the given ViewHolder. Clears all changeFlags
.
Parameters | |
---|---|
holder |
RecyclerView.ViewHolder : The ViewHolder whose bounds should be copied. |
Returns | |
---|---|
RecyclerView.ItemAnimator.ItemHolderInfo |
This RecyclerView.ItemAnimator.ItemHolderInfo
|
Annotations
Interfaces
- ActionMenuView.OnMenuItemClickListener
- PopupMenu.OnDismissListener
- PopupMenu.OnMenuItemClickListener
- RecyclerView.ChildDrawingOrderCallback
- RecyclerView.ItemAnimator.ItemAnimatorFinishedListener
- RecyclerView.LayoutManager.LayoutPrefetchRegistry
- RecyclerView.OnChildAttachStateChangeListener
- RecyclerView.OnItemTouchListener
- RecyclerView.RecyclerListener
- RecyclerView.SmoothScroller.ScrollVectorProvider
- SearchView.OnCloseListener
- SearchView.OnQueryTextListener
- SearchView.OnSuggestionListener
- ShareActionProvider.OnShareTargetSelectedListener
- ThemedSpinnerAdapter
- Toolbar.OnMenuItemClickListener
Classes
- ActionMenuView
- ActionMenuView.LayoutParams
- AppCompatAutoCompleteTextView
- AppCompatButton
- AppCompatCheckBox
- AppCompatCheckedTextView
- AppCompatEditText
- AppCompatImageButton
- AppCompatImageView
- AppCompatMultiAutoCompleteTextView
- AppCompatRadioButton
- AppCompatRatingBar
- AppCompatSeekBar
- AppCompatSpinner
- AppCompatTextView
- CardView
- DefaultItemAnimator
- DividerItemDecoration
- GridLayout
- GridLayout.Alignment
- GridLayout.LayoutParams
- GridLayout.Spec
- GridLayoutManager
- GridLayoutManager.DefaultSpanSizeLookup
- GridLayoutManager.LayoutParams
- GridLayoutManager.SpanSizeLookup
- LinearLayoutCompat
- LinearLayoutCompat.LayoutParams
- LinearLayoutManager
- LinearLayoutManager.LayoutChunkResult
- LinearSmoothScroller
- LinearSnapHelper
- ListPopupWindow
- OrientationHelper
- PagerSnapHelper
- PopupMenu
- RecyclerView
- RecyclerView.Adapter
- RecyclerView.AdapterDataObserver
- RecyclerView.EdgeEffectFactory
- RecyclerView.ItemAnimator
- RecyclerView.ItemAnimator.ItemHolderInfo
- RecyclerView.ItemDecoration
- RecyclerView.LayoutManager
- RecyclerView.LayoutManager.Properties
- RecyclerView.LayoutParams
- RecyclerView.OnFlingListener
- RecyclerView.OnScrollListener
- RecyclerView.RecycledViewPool
- RecyclerView.Recycler
- RecyclerView.SimpleOnItemTouchListener
- RecyclerView.SmoothScroller
- RecyclerView.SmoothScroller.Action
- RecyclerView.State
- RecyclerView.ViewCacheExtension
- RecyclerView.ViewHolder
- RecyclerViewAccessibilityDelegate
- RecyclerViewAccessibilityDelegate.ItemDelegate
- SearchView
- ShareActionProvider
- SimpleItemAnimator
- SnapHelper
- StaggeredGridLayoutManager
- StaggeredGridLayoutManager.LayoutParams
- SwitchCompat
- ThemedSpinnerAdapter.Helper
- Toolbar
- Toolbar.LayoutParams
- Toolbar.SavedState
- TooltipCompat