当前位置: 代码迷 >> 综合 >> MotionEvent//动作事件
  详细解决方案

MotionEvent//动作事件

热度:3   发布时间:2023-12-16 06:16:10.0

MotionEvent//动作事件

public final class MotionEvent extends InputEvent implements Parcelable

//android.view.InputEvent,android.view.MotionEvent

类概述:

Object used to report movement (mouse, pen, finger, trackball) events. Motion events may hold either absolute or relative movements and other data, depending on the type of device.
//(此)对象被用于报告移动(鼠标,笔,手指,轨迹球)事件。运动事件可能持有相对或者绝对的移动和其它数据,依赖于设备的类型。

概述:

Motion events describe movements in terms of an action code and a set of axis values. The action code specifies the state change that occurred such as a pointer going down or up. The axis values describe the position and other movement properties.