Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.22k stars 1.13k forks source link

How to add a delay when pressing the FAB Menu button #227

Open nh1402 opened 8 years ago

nh1402 commented 8 years ago

I would like to apply a press and hold delay before the FAB Menu button opens. So the FAB Menu only opens after holding the button for a set time (eg. 3 seconds). How would I go about implementing this?

Clans commented 8 years ago

Try to disable the default open/close action by setting the OnClickListener and use touch gesture recognition.