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.
有没有办法确定在触摸屏上按下按钮的力度?也许使用加速度计细节。
您可以通过MotionEvent.getPressure()获得压力
注意:压力即手指触摸覆盖了多少像素。
随着数字像素覆盖的越多,您触摸的越难。