I have in my app feature which requires double tap on bottom navigation item to reload fragment data and I've searched a lot but didn't find a good way to handle this action so please help me with my issue
Asked
Active
Viewed 623 times
0
-
I don't think I've ever seen an Android design that requires a double-tap. But ok, you just need to track the first tap, and if there is a second tap within 325 ms or so then trigger the double click effect. – EpicPandaForce Dec 08 '19 at 12:42
-
i've already handled it in that way but i think that is not good practice so I'm asking if there is library which includes that feature – Ahmed Jamal Dec 08 '19 at 14:33
-
Any library would be doing the same thing, it's just code and this is what you need done – EpicPandaForce Dec 08 '19 at 17:27
1 Answers
0
I would recommend a long tap but if you really want to use double tap maybe this thread can help you: https://stackoverflow.com/a/6290044/3528912

p00ns
- 66
- 4