MaterialViewPager
MaterialViewPager copied to clipboard
MaterialViewPager don`t work with navigation drawer
I apologize in advance for my English. I am use the default navigation drawer from android studio. So, i have the mainActivity with drawer and fragment container and few fragments with materialViewPager.
In order not to duplicate the toolbar, I assign to mainActivity toolbar the toolbar of materialViewPager. And now, instead of hamburger icon in the toolbar is displayed arrow icon. And you can only open drawer swipe. How can this problem be solved?
I don't know if I can help with this. try this: http://developer.android.com/training/implementing-navigation/nav-drawer.html
You need to create an ActionBarDrawerToggle and set to your Toolbar
To get the toolbar: youMaterialViewPager.getToolbar()
@vitorprado Very good, only drawer not open when you click on toolbar. By the way, see a demo, you also will not open. Only by swipe. https://android-arsenal.com/details/1/1731
@elkyzmich you need to listen the click in action button and open drawer programatically.
Take a look at the sample app provided in the library. It has all the code you need