I was looking into the tablet design of Gmail application. In that Navigation Drawer
implementation is different from others. I have attached image for your reference.
And also when I expand the the drawer it should happen like normal navigation drawer behavior.
I would like to implement in the same way. I was searching but i found only this link Which is not so helpful. Can anyone give me suggestions how can I do this!
There is an awesome library for this https://github.com/mikepenz/MaterialDrawer
(Use MiniDrawer from this library)
You can use a
SlidingPaneLayout
with a margin on the main pane and custom listener for the cross fading.Subclass
SlidingPaneLayout
and find the partial and full panes inonFinishInflate
:Change the alpha of the full pane and partial pane with a listener:
Also, hide the partial pane when the layout is opened.
More info: http://blog.sqisland.com/2015/01/partial-slidingpanelayout.html