本文介绍了获取pressure与一个按钮获得pressed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在Android的一个简单的方法来获取用户onClick事件期间延长了pressure?

Is there an easy way in android to get the pressure that the user extended during an onClick event?

推荐答案

如果您添加MotionEvent监听到你的按钮,你可以要求从MotionEvent pressure。

If you add an MotionEvent listener to your button you can ask for pressure from the MotionEvent.

相关文档:

http://developer.android.com/reference/android/查看/ View.OnTouchListener.html

的()

这篇关于获取pressure与一个按钮获得pressed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 01:17