MaterialViewPager icon indicating copy to clipboard operation
MaterialViewPager copied to clipboard

MaterialViewPager don`t work with navigation drawer

Open zzzgrzzzk opened this issue 9 years ago • 4 comments

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?

zzzgrzzzk avatar Dec 16 '15 20:12 zzzgrzzzk

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 avatar Dec 17 '15 16:12 vitorprado

@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

zzzgrzzzk avatar Dec 18 '15 18:12 zzzgrzzzk

@elkyzmich you need to listen the click in action button and open drawer programatically.

vitorprado avatar Jan 04 '16 16:01 vitorprado

Take a look at the sample app provided in the library. It has all the code you need

shahimclt avatar Aug 02 '17 07:08 shahimclt