asdsolutions-os / duo-navigation-drawer

A flexible, easy to use, unique drawer library for your Android project.
http://psdcompany.nl/
Apache License 2.0
1.1k stars 191 forks source link

Keep toolbar always on top ? #10

Closed Kintaro37 closed 7 years ago

Kintaro37 commented 7 years ago

Hello, First of all, thank you for sharing your work. Also, here is a question, not an issue report.

Is there a possibility to keep the toolbar always visible on top, so that on the hamburger click, the menu drawer slides below the toolbar?

potalexander commented 7 years ago

Yes this is possible, just put a toolbar outside the DuoDrawerLayout.

Example:

<LinearLayout>
    <android.support.v7.widget.Toolbar/>
    <nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout>
        <nl.psdcompany.duonavigationdrawer.views.DuoMenuView/>
        <FrameLayout/>
    </nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout>
</LinearLayout>