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- 屬性
備註
一種指標擷取模式,觸控板會回報絕對手指位置。
在此擷取模式中,不會嘗試辨識觸控板輸入的手勢。 相反地,每個觸控板上的絕對位置會直接回報給 View,就像有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
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。