Język

View.PointerCaptureModeAbsolute Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.PointerCaptureMode enum directly instead of this field.

A pointer capture mode in which touchpads report absolute finger locations.

[Android.Runtime.Register("POINTER_CAPTURE_MODE_ABSOLUTE", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.PointerCaptureMode enum directly instead of this field.", true)]
public const Android.Views.PointerCaptureMode PointerCaptureModeAbsolute = 1;
[<Android.Runtime.Register("POINTER_CAPTURE_MODE_ABSOLUTE", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.PointerCaptureMode enum directly instead of this field.", true)>]
val mutable PointerCaptureModeAbsolute : Android.Views.PointerCaptureMode

Field Value

Value = 1
Attributes

Remarks

A pointer capture mode in which touchpads report absolute finger locations.

In this capture mode, no attempt is made to recognize gestures from touchpad input. Instead, the absolute location of each touch on the pad is reported directly to the View, in the same way that other touches on devices with InputDevice.SOURCE_CLASS_POINTER are reported.

Events will be delivered with the source InputDevice.SOURCE_TOUCHPAD. The absolute position of each touch will be available through MotionEvent.getX(int) and MotionEvent.getY(int), and their relative movements through MotionEvent.AXIS_RELATIVE_X and MotionEvent.AXIS_RELATIVE_Y. If the touchpad supports them, touch dimension information may be available through the MotionEvent.AXIS_PRESSURE, MotionEvent.AXIS_TOUCH_MAJOR, MotionEvent.AXIS_TOUCH_MINOR, MotionEvent.AXIS_TOOL_MAJOR, MotionEvent.AXIS_TOOL_MINOR, and MotionEvent.AXIS_ORIENTATION axes.

Events from mice are always reported in the same way regardless of capture mode.

Android reference for android.view.View.POINTER_CAPTURE_MODE_ABSOLUTE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to