• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Difference between setOnClickListener and setOnTouchListener?

This might be a dumb question. I don't own any phone with the Android OS so there's no way for me to test this, but I figured since they're touchscreen I would use setOnTouchListener, but at the same time, setOnClickListener seems to make sense. Can I use either one?
 
If you just want to handle a tap on the screen you should use the onClickListener because some phones might not have touch and the onClickListener also reacts to the normal button press.
 
Back
Top Bottom