ShinobiControls Xamarin Bindings Documentation

ShinobiControls.Android.Grids : ShinobiControls.Android.Grids.Core Namespace

IItemViewHolderCreator Interface

An ItemViewHolderCreator maps an itemViewType, which is just a unique int identifier, to a method of creating a corresponding .

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/core/ItemViewHolderCreator", "", "ShinobiControls.Android.Grids.Core.IItemViewHolderCreatorInvoker")]
public interface IItemViewHolderCreator : Android.Runtime.IJavaObject, IDisposable

Remarks

An ItemViewHolderCreator maps an itemViewType, which is just a unique int identifier, to a method of creating a corresponding . The library pre-registers a number of built-in ItemViewHolderCreators for you to use. In addition, custom ItemViewHolderCreators can be registered with a ShinobiControls.Android.Grids.Core.ShinobiGridView to allow Columns to make use of them. ShinobiControls.Android.Grids.Resources.Id lists the corresponding itemViewTypes of the built-in ItemViewHolderCreators available.

The itemViewType should be unique for each ItemViewHolderCreator. As such it is recommended that XML id resources are used to define these ids.

Requirements

Namespace: ShinobiControls.Android.Grids.Core
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

Members

Public Properties

[read-only]
ItemViewType int .

Public Methods

Member Details

CreateItemViewHolder Method

Syntax

[Android.Runtime.Register("createItemViewHolder", "(Landroid/view/ViewGroup;)Landroid/support/v7/widget/RecyclerView$ViewHolder;", "GetCreateItemViewHolder_Landroid_view_ViewGroup_Handler:ShinobiControls.Android.Grids.Core.IItemViewHolderCreatorInvoker, ShinobiControls.Android.Grids")]
public Android.Support.V7.Widget.RecyclerView.ViewHolder CreateItemViewHolder (Android.Views.ViewGroup parent)

Parameters

parent
- the parent ViewGroup of the item view; this provides access to the current

Returns

a ViewHolder that is applicable for the itemViewType this ItemViewHolderCreator represents

Remarks

Creates a ViewHolder that is applicable for the itemViewType

this ItemViewHolderCreator represents.

Requirements

Namespace: ShinobiControls.Android.Grids.Core
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

ItemViewType Property

Syntax

[get: Android.Runtime.Register("getItemViewType", "()I", "GetGetItemViewTypeHandler:ShinobiControls.Android.Grids.Core.IItemViewHolderCreatorInvoker, ShinobiControls.Android.Grids")]
public int ItemViewType { get; }

Value

the itemViewType that this ItemViewHolderCreator creates ViewHolders for

Remarks

Returns the itemViewType

that this ItemViewHolderCreator creates ViewHolders for.

Requirements

Namespace: ShinobiControls.Android.Grids.Core
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0