다음을 통해 공유


MotionEvent.AxisGestureXOffset Field

Definition

Caution

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

Axis constant: X gesture offset axis of a motion event.

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

Field Value

Value = 48

Implements

Attributes

Remarks

Axis constant: X gesture offset axis of a motion event.

<ul> <li>For a touch pad, reports the distance that a swipe gesture has moved in the X axis, as a proportion of the touch pad's size. For example, if a touch pad is 1000 units wide, and a swipe gesture starts at X = 500 then moves to X = 400, this axis would have a value of -0.1. </ul> These values are relative to the state from the last event, not accumulated, so developers should make sure to process this axis value for all batched historical events.

Java documentation for android.view.MotionEvent.AXIS_GESTURE_X_OFFSET.

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