Difference between OnTouchListener and OnClickListener

后端 未结 1 848
名媛妹妹
名媛妹妹 2021-01-17 19:39

I made an app which implements a View.OnTouchListener. But when I uploaded it to Android Market (Google Play Store), I got the following message:

相关标签:
1条回答
  • 2021-01-17 20:27

    OnTouchListener is for more fine-grained control than OnClickListener. If what you really care about is clicks -- i.e., the combination of of down-touch/up-touch/no-drag -- then use OnClickListener, that's its purpose.

    0 讨论(0)
提交回复
热议问题