View.OnKeyListener
|_____onKey(View v,
int keyCode, KeyEvent event)
View.OnTouchListener
|_____onTouch(View v, MotionEvent event)
View
|____Override__________onKeyDown(int,
KeyEvent) 继承自KeyEvent.Callback
|_____________________onTouchEvent(MotionEvent)
第一种是EventListener
第二种是Override回调函数
时间: 2024-10-05 23:56:21