ShinobiControls Xamarin Bindings Documentation

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

Column Class

Represents a column in a ShinobiControls.Android.Grids.Core.ShinobiGridView.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/core/Column", DoNotGenerateAcw=true)]
public sealed class Column : Java.Lang.Object

Remarks

Represents a column in a ShinobiControls.Android.Grids.Core.ShinobiGridView. Columns are added to a grid in order to display data.

A new Column can be created with the Column.Create(IColumnSpec) method. A ShinobiControls.Android.Grids.Core.IColumnSpec, which defines certain properties and behaviors of the Column, must be passed into this method. You can create your own ColumnSpec implementations or you can use the ones provided by the library, such as the ShinobiControls.Android.Grids.Supplement.TextColumnSpec.

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

See Also: Inherited members from Java.Lang.Object.

Public Properties

[read-only]
ColumnSpec IColumnSpec .
[read-only]
HasHeader bool .
[read-only]
HeaderItemViewType int .
[read-only]
Index int .

Protected Properties

[read-only]
override
ThresholdClass IntPtr . This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdType Type . This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
Create (IColumnSpec) : Column
Creates a new Column based on the supplied ShinobiControls.Android.Grids.Core.IColumnSpec
GetItemViewType (int) : int
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.

Member Details

ColumnSpec Property

Syntax

[get: Android.Runtime.Register("getColumnSpec", "()Lcom/shinobicontrols/grids/core/ColumnSpec;", "GetGetColumnSpecHandler")]
public IColumnSpec ColumnSpec { get; }

Value

the ShinobiControls.Android.Grids.Core.IColumnSpec for this column

Remarks

Returns the ShinobiControls.Android.Grids.Core.IColumnSpec

for this Column.

Requirements

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

Create Method

Creates a new Column based on the supplied ShinobiControls.Android.Grids.Core.IColumnSpec

Syntax

[Android.Runtime.Register("create", "(Lcom/shinobicontrols/grids/core/ColumnSpec;)Lcom/shinobicontrols/grids/core/Column;", "")]
public static Column Create (IColumnSpec columnSpec)

Parameters

columnSpec
- the ColumnSpec that defines certain properties and behavior of the Column being created

Returns

a newly created Column based on the given ColumnSpec

Remarks

Creates a new Column based on the supplied ShinobiControls.Android.Grids.Core.IColumnSpec

.

Requirements

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

GetItemViewType Method

Syntax

[Android.Runtime.Register("getItemViewType", "(I)I", "")]
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 view type for the item at the given rowIndex

Remarks

Returns the view type for the item at the given rowIndex

, as defined by this Column's ColumnSpec or, if the item has had its visibility set to false, a view type of Resource.Id.sg_hidden_item_view

. This identifies the view type which will be placed in the grid to represent blank or empty items. By default this is a transparent View but it is possible to register a different View to be used for hidden items (see ShinobiGridView.RegisterItemViewHolderCreator(IItemViewHolderCreator)

and GridRecyclerView.setItemVisible(int, %20boolean)

).

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")]
public bool HasHeader { get; }

Value

whether this Column has a header or not

Remarks

Returns whether this Column has a header or not, as defined by this Column's ColumnSpec.

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")]
public int HeaderItemViewType { get; }

Value

the item view type for the header of this Column

Remarks

Returns the item view type for the header of this Column, as defined by this Column's ColumnSpec or, if the header item has had its visibility set to false, a view type of Resource.Id.sg_hidden_item_view

. This identifies the view type which will be placed in the grid to represent blank or empty items. By default this is a transparent View but it is possible to register a different View to be used for hidden items (see ShinobiGridView.RegisterItemViewHolderCreator(IItemViewHolderCreator)

and GridRecyclerView.setItemVisible(int, %20boolean)

).

Requirements

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

Index Property

Syntax

[get: Android.Runtime.Register("getIndex", "()I", "GetGetIndexHandler")]
public int Index { get; }

Value

the index of this Column in the ShinobiGridView

Remarks

Returns the index in the list of columns in the ShinobiGridView for this Column. If this Column has not been added to a grid then a value of -1

will be returned.

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", "")]
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", "")]
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

ThresholdClass Property

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Syntax

protected override IntPtr ThresholdClass { get; }

Value

A IntPtr which contains the java.lang.Class JNI value corresponding to this type.

Remarks

This property is used to control which jclass is provided to methods like Android.Runtime.JNIEnv.CallNonVirtualVoidMethod.

Requirements

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

ThresholdType Property

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Syntax

protected override Type ThresholdType { get; }

Value

A Type which provides the declaring type.

Remarks

This property is used to control virtual vs. non virtual method dispatch against the underlying JNI object. When this property is equal to the declaring type, then virtual method invocation against the JNI object is performed; otherwise, we assume that the method was overridden by a derived type, and perform non-virtual methdo invocation.

Requirements

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