package

com.shinobicontrols.grids.supplement

A collection of convenience classes for use with the ShinobiGridView.

Interfaces

ChildViewFinder

Defines the way child views are searched for in a RecyclerView. 

ColumnReorderDetector.OnColumnReorderListener

Callback to be invoked when a column on the grid has been reordered. 

ItemDragDetector.OnItemDragListener

Callback to be invoked when an item in the grid has been long pressed and dragged. 

ItemSingleTapDetector.Callback

Callback to be invoked when an item in the grid has been single tapped. 

OnStyleChangedListener

A callback which notifies listeners when the style has changed. 

PropertyBinder<T>

Type Parameters:

  • T - the type of the object returned as a result of binding to a property

A PropertyBinder defines how a rowIndex relates to a piece of data. 

RowReorderDetector.OnRowReorderListener

Callback to be invoked when a row on the grid has been reordered. 

Classes

BlankColumnHeaderViewHolder

A convenience ViewHolder that contains a single android.view.View. 

BlankColumnHeaderViewHolder.Creator

An ItemViewHolderCreator for the BlankColumnHeaderViewHolder. 

ColumnReorderDetector

An implementation of ItemDragDetector.OnItemDragListener that responds to drag gestures made on items within the grid, interpreting them as column reorder events. 

ColumnReorderer

An implementation of ColumnReorderDetector.OnColumnReorderListener that reorders the list of Column objects held by the ShinobiGridView at the end of a column reordering event, that is when the user lifts up their finger. 

DataItemDecoration

An extension of GridItemDecoration which is specifically intended for use with the GridRecyclerView which visualizes the data items within the ShinobiGridView
DefaultItemStateManager

Convenience class to update the positions of hidden and selected items on the header and data GridRecyclerViews following the addition, removal or reordering of rows and columns. 

DirectlyUnderChildViewFinder

This ChildViewFinder simply checks for a child View under the given X and Y co-ordinates and returns the top most View found. 

GridItemDecoration

Base class to provide decoration for items within the GridRecyclerViews contained within the ShinobiGridView
HeaderItemDecoration

An extension of GridItemDecoration which is specifically intended for use with the GridRecyclerView which visualizes the header items within the ShinobiGridView
HeaderTextViewHolder

A convenience ViewHolder that contains a single android.widget.TextView that is used for Column headers. 

HeaderTextViewHolder.Creator

An ItemViewHolderCreator for the HeaderTextViewHolder. 

HiddenItemViewHolder

A convenience ViewHolder that contains a single View. 

HiddenItemViewHolder.Creator

An ItemViewHolderCreator for the HiddenItemViewHolder. 

ItemDragDetector

An implementation of RecyclerView.OnItemTouchListener that responds to long press and drag gestures made on items within the grid. 

ItemPositionUpdater

The ItemPositionUpdater is a helper class for maintaining the state of items when the ShinobiGridView is modified in some way. 

ItemSingleTapDetector

An implementation of android.support.v7.widget.RecyclerView.OnItemTouchListener that responds to single tap gestures made on items within the grid. 

MultiSelectionMode

Selects items in the ShinobiGridView in such a way as to have no impact on the selection state of other items. 

NearestInTouchBoundsChildViewFinder

This ChildViewFinder searches for the nearest child View to some given X and Y co-ordinates that is within some specified bounds. 

RowColumnReorderManager

A convenience class responsible for interpreting user long press and drag gestures on a given GridRecyclerView component of a ShinobiGridView into reorder events of optionally, rows and columns. 

RowRangeChangedNotifier

Convenience class to assist with notifying a given GridRecyclerView (which implements HasGridBehavior) of a change in a range of rows. 

RowReorderDetector

An implementation of ItemDragDetector.OnItemDragListener that responds to drag gestures made on items within the grid, interpreting them as row reorder events. 

SingleSelectionMode

Allows for at most one item to be selected in the ShinobiGridView at any one time. 

TextColumnSpec

A convenience ColumnSpec that deals with textual data and places it in android.widget.TextViews. 

TextColumnStyle

A convenience style object that is used to set the style of various items within the TextColumnSpec

TextViewHolder

A convenience ViewHolder that contains a single android.widget.TextView. 

TextViewHolder.Creator

An ItemViewHolderCreator for the TextViewHolder. 

VisualColumnReorderer

Visualizes the reordering of columns within the ShinobiGridView

VisualRowReorderer

Visualizes the reordering of rows within the ShinobiGridView