Differentiate Single click and double click of a imageView in android

前端 未结 5 993
南笙
南笙 2021-01-29 10:24

I have tried the following code to differentiate single click and double click. Single click is ok. When I double click the imageview, code inside both the single click and doub

5条回答
  •  余生分开走
    2021-01-29 11:16

    By convention, Android apps don't have double clicking.

    Maybe you'd rather use onLongClick?

    Although, if you really want double click check out GestureDetector.OnDoubleTapListener

提交回复
热议问题