View.PointerCaptureModeAbsolute 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.Views.PointerCaptureMode enum directly instead of this field.
指针捕获模式,触摸板报告绝对手指位置。
[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
字段值
Value = 1- 属性
注解
指针捕获模式,触摸板报告绝对手指位置。
在此捕获模式下,不会尝试从触摸板输入识别手势。 相反,垫上每个触摸的绝对位置将直接报告给视图,就像报告对具有InputDevice.SOURCE_CLASS_POINTER的设备进行其他触摸一样。
事件将使用源InputDevice.SOURCE_TOUCHPAD传送。 每个触摸的绝对位置将通过 MotionEvent.getX(int) 和 MotionEvent.getY(int)获得,以及通过MotionEvent.AXIS_RELATIVE_X和MotionEvent.AXIS_RELATIVE_Y进行相对移动。 如果触摸板支持它们,可通过MotionEvent.AXIS_PRESSURE、MotionEvent.AXIS_TOUCH_MAJOR、MotionEvent.AXIS_TOUCH_MINOR、MotionEvent.AXIS_TOOL_MAJOR、MotionEvent.AXIS_TOOL_MINOR和MotionEvent.AXIS_ORIENTATION轴获取触摸维度信息。
无论捕获模式如何,鼠标中的事件始终以相同的方式报告。
Android 参考。android.view.View.POINTER_CAPTURE_MODE_ABSOLUTE
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。