언어

View.PointerCaptureModeRelative 필드

정의

주의

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_RELATIVE", 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 PointerCaptureModeRelative = 2;
[<Android.Runtime.Register("POINTER_CAPTURE_MODE_RELATIVE", 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 PointerCaptureModeRelative : Android.Views.PointerCaptureMode

필드 값

Value = 2
특성

설명

터치 패드 제스처가 마우스 움직임처럼 인식되고 보고되는 포인터 캡처 모드입니다.

이 캡처 모드에서는 캡처된 터치 패드에서 수행된 다음 제스처가 인식되고 보고됩니다. 포인터 이동 제스처(예: 패드에서 한 손가락 이동)는 MotionEvent.ACTION_MOVE 동작과 MotionEvent.getX 및 MotionEvent.getY를 통해 사용할 수 있는 상대 위치 변경 내용과 함께 마우스 이동처럼 보고됩니다. 스크롤 제스처(예: 두 손가락 살짝 밀기)는 MotionEvent.ACTION_SCROLL 동작과 MotionEvent.AXIS_VSCROLL 및 MotionEvent.AXIS_HSCROLL 축을 통해 사용할 수 있는 스크롤 양과 함께 마우스의 스크롤 휠 이동처럼 보고됩니다.

동작 값은 몸짓 손가락의 실제 동작에 비례하며, mm의 물리적 이동은 관련 축에 대해 InputDevice.MotionRange.getResolution에서 보고한 해상도를 사용하여 찾을 수 있습니다.

이러한 이벤트는 InputDevice.SOURCE_MOUSE_RELATIVE 함께 보고됩니다.

마우스의 이벤트는 캡처 모드에 관계없이 항상 동일한 방식으로 보고됩니다.

에 대한 android.view.View.POINTER_CAPTURE_MODE_RELATIVEAndroid 참조

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상