ShinobiControls Xamarin Bindings Documentation

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

ItemDragDetector Class

An implementation of RecyclerView.OnItemTouchListener that responds to long press and drag gestures made on items within the grid.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/supplement/ItemDragDetector", DoNotGenerateAcw=true)]
public class ItemDragDetector : Java.Lang.Object, Android.Support.V7.Widget.RecyclerView.IOnItemTouchListener, IDisposable

Remarks

An implementation of RecyclerView.OnItemTouchListener that responds to long press and drag gestures made on items within the grid. It is given an ShinobiControls.Android.Grids.Supplement.ItemDragDetector.IOnItemDragListener which determines what actions should be taken at each stage of the drag gesture (long press, move, release).

This listener will swallow the touch event when the start of a drag gesture has been recognized (i.e. after a long press). This means if the Views for the items covered by the drag gesture have their own View.OnClickListeners they will not be called.

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 Java.Lang.Object.

Public Constructors

Documentation for this section has not yet been entered.

Protected Constructors

Documentation for this section has not yet been entered.

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

Public Events

ItemDrag Documentation for this section has not yet been entered.
ItemReleaseDrag Documentation for this section has not yet been entered.
ItemStartDrag Documentation for this section has not yet been entered.

Member Details

ItemDragDetector Constructor

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public ItemDragDetector (Android.Content.Context context)

Parameters

context
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

ItemDragDetector Constructor

Documentation for this section has not yet been entered.

Syntax

protected ItemDragDetector (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

AddOnItemDragListener Method

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register("addOnItemDragListener", "(Lcom/shinobicontrols/grids/supplement/ItemDragDetector$OnItemDragListener;)V", "")]
public void AddOnItemDragListener (ItemDragDetector.IOnItemDragListener onItemDragListener)

Parameters

onItemDragListener
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

GetItemPosition Method

Syntax

[Android.Runtime.Register("getItemPosition", "(Landroid/support/v7/widget/RecyclerView;FF)I", "")]
public int GetItemPosition (Android.Support.V7.Widget.RecyclerView p0, float p1, float p2)

Parameters

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

Returns

the position of the item in recyclerView that is represented by the child View at the X and Y co-ordinates of the MotionEvent

Remarks

Returns the position of the item in recyclerView

at the given X and Y co-ordinates. If no child View can be found at these co-ordinates a position of -1 is returned.

Requirements

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

ItemDrag Event

Documentation for this section has not yet been entered.

Syntax

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

ItemReleaseDrag Event

Documentation for this section has not yet been entered.

Syntax

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

ItemStartDrag Event

Documentation for this section has not yet been entered.

Syntax

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

OnInterceptTouchEvent Method

Syntax

[Android.Runtime.Register("onInterceptTouchEvent", "(Landroid/support/v7/widget/RecyclerView;Landroid/view/MotionEvent;)Z", "GetOnInterceptTouchEvent_Landroid_support_v7_widget_RecyclerView_Landroid_view_MotionEvent_Handler")]
public virtual bool OnInterceptTouchEvent (Android.Support.V7.Widget.RecyclerView p0, Android.Views.MotionEvent p1)

Parameters

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

Returns

Remarks

Requirements

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

OnRequestDisallowInterceptTouchEvent Method

Syntax

[Android.Runtime.Register("onRequestDisallowInterceptTouchEvent", "(Z)V", "GetOnRequestDisallowInterceptTouchEvent_ZHandler")]
public virtual void OnRequestDisallowInterceptTouchEvent (bool disallowIntercept)

Parameters

disallowIntercept
Documentation for this section has not yet been entered.

Remarks

Requirements

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

OnTouchEvent Method

Syntax

[Android.Runtime.Register("onTouchEvent", "(Landroid/support/v7/widget/RecyclerView;Landroid/view/MotionEvent;)V", "GetOnTouchEvent_Landroid_support_v7_widget_RecyclerView_Landroid_view_MotionEvent_Handler")]
public virtual void OnTouchEvent (Android.Support.V7.Widget.RecyclerView p0, Android.Views.MotionEvent p1)

Parameters

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

Remarks

Requirements

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

RemoveOnItemDragListener Method

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register("removeOnItemDragListener", "(Lcom/shinobicontrols/grids/supplement/ItemDragDetector$OnItemDragListener;)V", "")]
public void RemoveOnItemDragListener (ItemDragDetector.IOnItemDragListener onItemDragListener)

Parameters

onItemDragListener
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

SetChildViewFinder Method

Syntax

[Android.Runtime.Register("setChildViewFinder", "(Lcom/shinobicontrols/grids/supplement/ChildViewFinder;)V", "")]
public void SetChildViewFinder (IChildViewFinder childViewFinder)

See Also

DirectlyUnderChildViewFinder

Parameters

childViewFinder
- the ShinobiControls.Android.Grids.Supplement.IChildViewFinder this ShinobiControls.Android.Grids.Supplement.ItemDragDetector should use

Remarks

Sets the ShinobiControls.Android.Grids.Supplement.IChildViewFinder

for this ShinobiControls.Android.Grids.Supplement.ItemDragDetector

. This defines the way child views are searched for. For example, you may want to find the nearest View to a given X and Y co-ordinate thus including any space for gridlines into this calculation.

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