ShinobiControls Xamarin Bindings Documentation

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

IColumnSpec Interface

Defines certain properties and behavior of a ShinobiControls.Android.Grids.Core.Column.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/core/ColumnSpec", "", "ShinobiControls.Android.Grids.Core.IColumnSpecInvoker")]
public interface IColumnSpec : Android.Runtime.IJavaObject, IDisposable

Remarks

Defines certain properties and behavior of a ShinobiControls.Android.Grids.Core.Column. A number of ready-made ColumnSpecs are provided with the library, such as the ShinobiControls.Android.Grids.Supplement.TextColumnSpec. Custom ColumnSpecs can also be created and given to the Column.Create(IColumnSpec) method.

ColumnSpecs should not be shared across different Columns.

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]
HasHeader bool .
[read-only]
HeaderItemViewType int .

Public Methods

GetItemViewType (int) : int
Initialize (Column.Callback)
Documentation for this section has not yet been entered.
OnBindHeaderViewHolder (Android.Support.V7.Widget.RecyclerView.ViewHolder)
Documentation for this section has not yet been entered.
OnBindViewHolder (Android.Support.V7.Widget.RecyclerView.ViewHolder, int)
Documentation for this section has not yet been entered.
OnColumnAdded (Android.Content.Context)

Member Details

GetItemViewType Method

Syntax

[Android.Runtime.Register("getItemViewType", "(I)I", "GetGetItemViewType_IHandler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public int GetItemViewType (int rowIndex)

Parameters

rowIndex
- the zero-based index of the row in the grid that the item being bound to the given holder is on

Returns

the item view type for the item at the given rowIndex in the grid

Remarks

Returns the item view type for the given rowIndex

in the grid.

Requirements

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

HasHeader Property

Syntax

[get: Android.Runtime.Register("hasHeader", "()Z", "GetHasHeaderHandler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public bool HasHeader { get; }

Value

whether the Column this ColumnSpec describes has a header or not

Remarks

Returns whether the Column this ColumnSpec describes has a header or not. If at least one Column in a ShinobiGridView has a header then a header row will be displayed.

Requirements

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

HeaderItemViewType Property

Syntax

[get: Android.Runtime.Register("getHeaderItemViewType", "()I", "GetGetHeaderItemViewTypeHandler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public int HeaderItemViewType { get; }

Value

the item view type for the header of the Column this ColumnSpec describes

Remarks

Returns the item view type for the header of the Column this ColumnSpec describes. If IColumnSpec.HasHeader

returns false

this method will not be called.

Requirements

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

Initialize Method

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register("initialize", "(Lcom/shinobicontrols/grids/core/Column$Callback;)V", "GetInitialize_Lcom_shinobicontrols_grids_core_Column_Callback_Handler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public void Initialize (Column.Callback callback)

Parameters

callback
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

OnBindHeaderViewHolder Method

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register("onBindHeaderViewHolder", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V", "GetOnBindHeaderViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_Handler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public void OnBindHeaderViewHolder (Android.Support.V7.Widget.RecyclerView.ViewHolder holder)

Parameters

holder
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

OnBindViewHolder Method

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register("onBindViewHolder", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V", "GetOnBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_IHandler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public void OnBindViewHolder (Android.Support.V7.Widget.RecyclerView.ViewHolder p0, int p1)

Parameters

p0
Documentation for this section has not yet been entered.
p1
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

OnColumnAdded Method

Syntax

[Android.Runtime.Register("onColumnAdded", "(Landroid/content/Context;)V", "GetOnColumnAdded_Landroid_content_Context_Handler:ShinobiControls.Android.Grids.Core.IColumnSpecInvoker, ShinobiControls.Android.Grids")]
public void OnColumnAdded (Android.Content.Context context)

Parameters

context
- the current context of the grid the Column has been added to providing access to attributes in the current theme

Remarks

Notifies this ColumnSpec that the Column it belongs to has been added to a ShinobiGridView. The current Context is passed in allowing the retrieval of attributes in the theme that has been applied to the grid.

Requirements

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