触摸屏和滚动球事件主要通过实现2个函数来接收:
public boolean onTouchEvent(MotionEvent event)
public boolean onTrackballEvent(MotionEvent event)
在以上2个函数中,MotionEvent类作为参数传入,在这个参数中可以获得运动事件的各种信息。
触摸屏和滚动球事件主要通过实现2个函数来接收:
public boolean onTouchEvent(MotionEvent event)
public boolean onTrackballEvent(MotionEvent event)
在以上2个函数中,MotionEvent类作为参数传入,在这个参数中可以获得运动事件的各种信息。