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-12-08 00:49:38