how to implement double click in android

前端 未结 9 838
深忆病人
深忆病人 2020-12-05 20:36

I am doing a project in which i want to display a particular message on single touch and another message on double touch using android.How can i implement it.

My sa

9条回答
  •  鱼传尺愫
    2020-12-05 21:21

    Why dont you use Long Press event insted while its Recommanded UI. Read Answer Here , I strongly recommand to use this.

    Or if its anyhow you want to implement you have two options , one is this using boolean and second is using Gesture Listener.

提交回复
热议问题