ShinobiControls Xamarin Bindings Documentation

ShinobiControls.Android.Grids : ShinobiControls.Android.Grids.Supplement Namespace

GridItemDecoration Class

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/supplement/GridItemDecoration", DoNotGenerateAcw=true)]
public abstract class GridItemDecoration : Android.Support.V7.Widget.RecyclerView.ItemDecoration

Remarks

Base class to provide decoration for items within the ShinobiControls.Android.Grids.Core.GridRecyclerViews contained within the ShinobiControls.Android.Grids.Core.ShinobiGridView. An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set. This can be useful for drawing dividers between items, highlights, visual grouping boundaries and more.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
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.ItemDecoration.

Protected Constructors

Documentation for this section has not yet been entered.

Public Fields

Public Properties

GridlinesOnTop int . GridItemDecoration.HorizontalLinesOnTop.
HorizontalLineColor int . .
LineThickness int . Returns the thickness, in pixels, of the gridlines.
Margin int . The margin will not adopt the styling of the individual item, but rather that of the whole grid.
VerticalLineColor 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.

Member Details

GridItemDecoration Constructor

Documentation for this section has not yet been entered.

Syntax

protected GridItemDecoration (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer)

Parameters

javaReference
Documentation for this section has not yet been entered.
transfer
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

GridlinesOnTop Property

Syntax

[get: Android.Runtime.Register("getGridlinesOnTop", "()I", "GetGetGridlinesOnTopHandler")]
[set: Android.Runtime.Register("setGridlinesOnTop", "(I)V", "GetSetGridlinesOnTop_IHandler")]
public virtual int GridlinesOnTop { get; set; }

See Also

GridItemDecoration.GridlinesOnTop

Value

the constant which dictates which lines are drawn on top

Remarks

Get method documentation
GridItemDecoration.HorizontalLinesOnTop.

Returns the constant which dictates which lines are drawn on top. By default this is set to

Set method documentation
GridItemDecoration.HorizontalLinesOnTop is called on the GridRecyclerView that this ItemDecoration belongs to.

Sets the constant which dictates which lines are drawn on top. By default this is set to

.

The effects of this change will not be visible until

Requirements

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

HorizontalLineColor Property

.

Syntax

[get: Android.Runtime.Register("getHorizontalLineColor", "()I", "GetGetHorizontalLineColorHandler")]
[set: Android.Runtime.Register("setHorizontalLineColor", "(I)V", "GetSetHorizontalLineColor_IHandler")]
public virtual int HorizontalLineColor { get; set; }

See Also

GridItemDecoration.HorizontalLineColor

Value

the of the horizontal gridlines

Remarks

Get method documentation
.

Returns the

of the horizontal gridlines. By default this is set to

Set method documentation
is called on the GridRecyclerView that this ItemDecoration belongs to.

Sets the

of the horizontal gridlines. By default this is set to

.

The effects of this change will not be visible until

Requirements

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

HorizontalLinesOnTop Field

Value: 2

Syntax

[Android.Runtime.Register("HORIZONTAL_LINES_ON_TOP")]
public const int HorizontalLinesOnTop

Remarks

Constant for use with GridItemDecoration.GridlinesOnTop

. Indicates that horizontal gridlines will be drawn on top.

Requirements

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

LineThickness Property

Returns the thickness, in pixels, of the gridlines.

Syntax

[get: Android.Runtime.Register("getLineThickness", "()I", "GetGetLineThicknessHandler")]
[set: Android.Runtime.Register("setLineThickness", "(I)V", "GetSetLineThickness_IHandler")]
public virtual int LineThickness { get; set; }

See Also

GridItemDecoration.LineThickness

Value

the thickness, in pixels, of the gridlines

Remarks

Get method documentation
Returns the thickness, in pixels, of the gridlines. By default this is set to 0.

Set method documentation
is called on the GridRecyclerView that this ItemDecoration belongs to.

Sets the thickness, in pixels, of the gridlines. By default this is set to 0.

The effects of this change will not be visible until

Requirements

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

Margin Property

The margin will not adopt the styling of the individual item, but rather that of the whole grid.

Syntax

[get: Android.Runtime.Register("getMargin", "()I", "GetGetMarginHandler")]
[set: Android.Runtime.Register("setMargin", "(I)V", "GetSetMargin_IHandler")]
public virtual int Margin { get; set; }

See Also

GridItemDecoration.Margin

Value

the space, in pixels, for each item's margin

Remarks

Get method documentation
The margin will not adopt the styling of the individual item, but rather that of the whole grid. If you wish to add spacing to the item and keep its style then you will need to use padding instead.

Returns the space, in pixels, for each item's margin. By default this is set to 0 which will leave no gap between the item's content and either the grid line, if available, or the next item.

Set method documentation
is called on the GridRecyclerView that this ItemDecoration belongs to.

Sets the space, in pixels, for each item's margin. By default this is set to 0 which will leave no gap between the item's content and either the grid line, if available, or the next item.

The margin won't adopt the styling of the individual item, but rather that of the whole grid. If you wish to add spacing to the item and keep its style then you will need to use padding instead.

The effects of this change will not be visible until

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
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.Supplement
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.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

VerticalLineColor Property

.

Syntax

[get: Android.Runtime.Register("getVerticalLineColor", "()I", "GetGetVerticalLineColorHandler")]
[set: Android.Runtime.Register("setVerticalLineColor", "(I)V", "GetSetVerticalLineColor_IHandler")]
public virtual int VerticalLineColor { get; set; }

See Also

GridItemDecoration.VerticalLineColor

Value

the that the vertical line will be drawn with

Remarks

Get method documentation
.

Returns the

of the vertical gridlines. By default this is set to

Set method documentation
is called on the GridRecyclerView that this ItemDecoration belongs to.

Sets the

of the vertical gridlines. By default this is set to

.

The effects of this change will not be visible until

Requirements

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

VerticalLinesOnTop Field

Value: 1

Syntax

[Android.Runtime.Register("VERTICAL_LINES_ON_TOP")]
public const int VerticalLinesOnTop

Remarks

Constant for use with GridItemDecoration.GridlinesOnTop

. Indicates that vertical gridlines will be drawn on top.

Requirements

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