catch double click on textview android

后端 未结 4 972
孤独总比滥情好
孤独总比滥情好 2021-01-21 03:33

i want to catch double click on textview for that i have used below code

but it still not working :(

TextView txtOne;

@Override
protected void onCreate(         


        
4条回答
  •  一整个雨季
    2021-01-21 03:54

    Instead of:

    GestureDetector.SimpleOnGestureListener()

    Try:

    GestureDetector.OnDoubleTapListener()

提交回复
热议问题