Android - Detect doubletap AND tripletap on view

后端 未结 4 1811
渐次进展
渐次进展 2021-02-03 10:07

I\'ve been trying to build a tap detector that can detect both double and tripe tap. After my efforts failed I searched a long time on the net to find something ready to use but

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-03 10:33

    Use the view listener to detect first tap on the view object,then see how to manage twice back pressed to exit an activity on stackoverflow.com (use a handler post delay).

    Clicking the back button twice to exit an activity

提交回复
热议问题