Set Duration of Long Key press Listener

前端 未结 3 2174
我在风中等你
我在风中等你 2021-01-23 11:33

Can we set duration for Long key press listener? What i want is, if user keeps touching the screen for 3 sec then my long key press listener should trigger and open my pop up fo

3条回答
  •  我在风中等你
    2021-01-23 11:41

    Inside the Long Press Listener u can set a Handler with 3 Sec Limit and if it reaches 3 sec time then u can run your method in it or else make default method

提交回复
热议问题