how to implement double click in android

前端 未结 9 823
深忆病人
深忆病人 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:26

    you can use on long click instead of using double click by override this method

     abstract boolean onLongClick(View v)
    

    Called when a view has been clicked and held.

提交回复
热议问题