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.
我正在创建一个游戏,我希望我的角色通过 Action_MOVE 向左或向右转,但前提是用户将手指从显示器上移开。我有一个类可以检测 MotionEvent 是 MOVE 还是 UP。
是的,我认为您可以依靠 MotionEvent.ACTION_UP