Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找是否可以在键盘上(在我的应用程序中)捕获 MotionEven 数据(压力)?或者有没有办法在我的应用程序中拦截屏幕上的所有触摸(类似于全屏模式)。
试试看:
@Override public boolean onTouchEvent(MotionEvent me) { //for example if (me.getAction() == MotionEvent.ACTION_UP) { } }