florent37 / MaterialViewPager

A Material Design ViewPager easy to use library
https://www.fiches-plateau-moto.fr
Apache License 2.0
8.15k stars 1.48k forks source link

open the Drawer by clicking a button #335

Open YitschakGlik opened 6 years ago

YitschakGlik commented 6 years ago

I created the drawer in a class - DrawerManager like your recommendation, in my app there is a menu button in every activity and its action is to open the drawer.

i tried to do it like this: in the class DrawerManager, after .build(); I add: result.openDrawer(); so when the menu btn is clicked its creating the drawer and open it.

-- there is a better way to do it?