square / mortar

A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle.
Apache License 2.0
2.16k stars 155 forks source link

Mortar and Flow with Drawer Layout #183

Open creativepsyco opened 8 years ago

creativepsyco commented 8 years ago

I am trying to achieve the translucent drawer navigation as shown in Cheesesquare sample from chrisbanes. It uses fitsSystemWindows attribute on a couple of parent views to allow the drawer to draw beyond the bounds. This is how the view hierarchy looks like:

image

I forked a sample Dagger2+Mortar+Flow repository and tried to add the changes within the repository to allow for translucent status bar as shown in cheesesquare. However, it does not work for some reason, I have tried troubleshooting through the view hierarchy, and I can't figure out what I am missing. Here is how the view hierarchy looks like: image

As you can see the drawer layout does not extend fully to the top. Is there a problem because of how SimplePathContainer inflates and attaches the layout?