ShinobiControls Xamarin Bindings Documentation

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

GridRecyclerView Class

implementation that is specific to the ShinobiControls.Android.Grids.Core.ShinobiGridView.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/core/GridRecyclerView", DoNotGenerateAcw=true)]
public sealed class GridRecyclerView : Android.Support.V7.Widget.RecyclerView, IHasGridBehavior, IShinobiGridViewAccessProvider, IDisposable

Remarks

implementation that is specific to the ShinobiControls.Android.Grids.Core.ShinobiGridView. The ShinobiControls.Android.Grids.Core.ShinobiGridView is made up of two ShinobiControls.Android.Grids.Core.GridRecyclerViews: one for the header row and one for the main body of data, and creates these ShinobiControls.Android.Grids.Core.GridRecyclerView instances itself. While it is not possible to create a ShinobiControls.Android.Grids.Core.GridRecyclerView in isolation, the ShinobiControls.Android.Grids.Core.ShinobiGridView makes the header and data ShinobiControls.Android.Grids.Core.GridRecyclerViews available through its ShinobiGridView.HeaderRecyclerView and ShinobiGridView.DataRecyclerView methods.

The ShinobiControls.Android.Grids.Core.GridRecyclerView has various grid-specific methods that are defined by the ShinobiControls.Android.Grids.Core.IHasGridBehavior interface, which it implements. For example, the ShinobiControls.Android.Grids.Core.GridRecyclerView has methods to set and query the selection and hidden states of its items. These are persisted across configuration changes, such as when you rotate the device.

defines a number of sub-types that allow you to control its appearance and behavior, for example, and . Implementations of these types can be added to the ShinobiControls.Android.Grids.Core.GridRecyclerView. Consequently, the parameter provided by the callback methods of these types can be safely cast to a ShinobiControls.Android.Grids.Core.GridRecyclerView.

As ShinobiControls.Android.Grids.Core.GridRecyclerView also implements the ShinobiControls.Android.Grids.Core.IShinobiGridViewAccessProvider interface this also means you can, if necessary, gain access to the parent ShinobiControls.Android.Grids.Core.ShinobiGridView. This is especially useful when you wish to affect both the header and data ShinobiControls.Android.Grids.Core.GridRecyclerViews as part of the same event.

Not all functionality is guaranteed to be fully compatible with the ShinobiControls.Android.Grids.Core.GridRecyclerView. For example, s are not currently supported.

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 Android.Support.V7.Widget.RecyclerView.

Public Properties

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

Member Details

GetColumnIndexForPosition Method

Syntax

[Android.Runtime.Register("getColumnIndexForPosition", "(I)I", "")]
public int GetColumnIndexForPosition (int position)

Parameters

position
- the position to query

Returns

the index of the Column that corresponds to the given position, or -1 if position does not map to a Column

Remarks

Description copied from interface: IHasGridBehavior.GetColumnIndexForPosition(int)

Requirements

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

GetHiddenItemPositions Method

Syntax

[Android.Runtime.Register("getHiddenItemPositions", "()[I", "")]
public int[] GetHiddenItemPositions ()

Returns

the positions of all currently hidden items

Remarks

Description copied from interface: IHasGridBehavior.GetHiddenItemPositions

Requirements

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

GetPosition Method

Syntax

[Android.Runtime.Register("getPosition", "(II)I", "")]
public int GetPosition (int p0, int p1)

Parameters

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

Returns

the position for the item that is in the given column and row

Remarks

Description copied from interface: IHasGridBehavior.getPosition(int, %20int)

Requirements

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

GetRelativeParentRect Method

Syntax

[Android.Runtime.Register("getRelativeParentRect", "(Landroid/graphics/Rect;)V", "")]
public void GetRelativeParentRect (Android.Graphics.Rect outRect)

Parameters

outRect
- filled with the bounds of this ShinobiControls.Android.Grids.Core.IHasGridBehavior's parent

Remarks

Requirements

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

GetRowIndexForPosition Method

Syntax

[Android.Runtime.Register("getRowIndexForPosition", "(I)I", "")]
public int GetRowIndexForPosition (int position)

Parameters

position
- the position to query

Returns

the index of the row that corresponds to the given position, or -1 if position does not map to a row

Remarks

Description copied from interface: IHasGridBehavior.GetRowIndexForPosition(int)

Requirements

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

GetSelectedItemPositions Method

Syntax

[Android.Runtime.Register("getSelectedItemPositions", "()[I", "")]
public int[] GetSelectedItemPositions ()

Returns

the positions of all currently selected items

Remarks

Description copied from interface: IHasGridBehavior.GetSelectedItemPositions

Requirements

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

IsItemSelected Method

Syntax

[Android.Runtime.Register("isItemSelected", "(I)Z", "")]
public bool IsItemSelected (int position)

Parameters

position
- the position of the item

Returns

true if the item is selected, otherwise false

Remarks

Description copied from interface: IHasGridBehavior.IsItemSelected(int)

Requirements

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

IsItemVisible Method

Syntax

[Android.Runtime.Register("isItemVisible", "(I)Z", "")]
public bool IsItemVisible (int itemPosition)

Parameters

itemPosition
- the position of the item to check

Returns

true if the item visibility status is currently set to true, otherwise false

Remarks

Description copied from interface: IHasGridBehavior.IsItemVisible(int)

Requirements

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

NotifyRowRangeChanged Method

Syntax

[Android.Runtime.Register("notifyRowRangeChanged", "(II)V", "")]
public void NotifyRowRangeChanged (int 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

Description copied from interface: IHasGridBehavior.notifyRowRangeChanged(int, %20int)

Requirements

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

SetItemSelected Method

Syntax

[Android.Runtime.Register("setItemSelected", "(IZ)V", "")]
public void SetItemSelected (int p0, bool p1)

See Also

IHasGridBehavior.IsItemSelected(int)

Parameters

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

Remarks

Description copied from interface: IHasGridBehavior.setItemSelected(int, %20boolean)

Requirements

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

SetItemVisible Method

Syntax

[Android.Runtime.Register("setItemVisible", "(IZ)V", "")]
public void SetItemVisible (int p0, bool p1)

See Also

IHasGridBehavior.IsItemVisible(int)

Parameters

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

Remarks

Description copied from interface: IHasGridBehavior.setItemVisible(int, %20boolean)

Requirements

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

ShinobiGridView Property

Syntax

[get: Android.Runtime.Register("getShinobiGridView", "()Lcom/shinobicontrols/grids/core/ShinobiGridView;", "GetGetShinobiGridViewHandler")]
public ShinobiGridView ShinobiGridView { get; }

Value

the ShinobiControls.Android.Grids.Core.ShinobiGridView in which this ShinobiControls.Android.Grids.Core.GridRecyclerView resides

Remarks

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