在preSS / onRelease在Android中 [英] onPress/onRelease in Android
本文介绍了在preSS / onRelease在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有preSS和onRelease任何形式的像闪光的Android按钮?
Is there any kind of onPress and onRelease for android buttons like in flash?
推荐答案
是的。而不是onClickListener的,你必须使用一个OnTouchListener。 <一href="http://developer.android.com/reference/android/view/View.OnTouchListener.html">http://developer.android.com/reference/android/view/View.OnTouchListener.html
Yes. Instead of an onClickListener, you have to use an OnTouchListener. http://developer.android.com/reference/android/view/View.OnTouchListener.html
此外,此无关闪光灯和不应该被标记为这样
Also, this has nothing to do with flash and shouldn't be tagged as such.
这篇关于在preSS / onRelease在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文