SelectAndDeleteExample Class |
Implementation demonstrating the usage of a
GridAdapterTParams, TCellVH with support for selecting items on long click and deleting them with a nice collapse animation
Inheritance Hierarchy
Namespace:
Com.ForbiddenByte.OSA.Demos.SelectAndDelete
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic class SelectAndDeleteExample : GridAdapter<MyGridParams, MyCellViewsHolder>,
LongClickableItemIItemLongClickListener, ExpandCollapseOnClickISizeChangesHandler
The SelectAndDeleteExample type exposes the following members.
Constructors
Properties
Methods|
| Name | Description |
|---|
 | ChangeItemsCount | Overridden in order to convert the cellsCount to groupsCount before passing it to the base's implementation (Overrides GridAdapterTParams, TCellVHChangeItemsCount(ItemCountChangeMode, Int32, Int32, Boolean, Boolean).) |
 | OnBeforeRecycleOrDisableCellViewsHolder | The only important callback for inheritors. It provides cell's views holder which has just become visible and whose views should be updated from its corresponding data model. viewsHolder.ItemIndex( ItemIndex) can be used to know what data model is associated with. (Overrides GridAdapterTParams, TCellVHOnBeforeRecycleOrDisableCellViewsHolder(TCellVH, Int32).) |
 | OnCellViewsHolderCreated | (Overrides GridAdapterTParams, TCellVHOnCellViewsHolderCreated(TCellVH, CellGroupViewsHolderTCellVH).) |
 | OnItemLongClicked | |
 | Refresh | (Overrides GridAdapterTParams, TCellVHRefresh(Boolean, Boolean).) |
 | Start | (Overrides OSATParams, TItemViewsHolderStart.) |
 | Update | (Overrides OSATParams, TItemViewsHolderUpdate.) |
 | UpdateCellViewsHolder | Called when a cell becomes visible (Overrides GridAdapterTParams, TCellVHUpdateCellViewsHolder(TCellVH).) |
Top
Events
Version InformationOptimized ScrollView Adapter
Supported in: 4.3
See Also