MaterialDrawer icon indicating copy to clipboard operation
MaterialDrawer copied to clipboard

Delay OnDrawerItemClickListener

Open MedoElkamaly opened this issue 11 years ago • 3 comments

First thanks so much for this great library. My question is: is there is a way to close the drawer first then open the activity on an item click?

MedoElkamaly avatar Sep 02 '15 21:09 MedoElkamaly

Or close the drawer smoothly, because sometimes when fragment loading takes some time or resources, not sure what the reason is at the moment. Then the drawer will close with .. uhhm .. "hik ups" (not smoothly).

echthard avatar Sep 03 '15 11:09 echthard

@MedoElkamaly there is the implementation to delay the closing of the drawer. you can also define the delay.

If you want it the other way around you should set the delay to 0 and then handle the delay on your own. with a handler or in a similar way

mikepenz avatar Sep 04 '15 07:09 mikepenz

Thanks for this support. In my app, fragment loading takes a bit delays, so closing drawer has been taking hang, so not smooth. Please help me with this issue.

integral0909 avatar May 23 '17 15:05 integral0909