I'm playing around with u2020-mortarmode of Jake Wharton's u2020sample app that contains NavigationDrawer. What I'm trying to do is make NavidationDrawer to move content wit actionbar as it opens. I'm doing it like this:
coreView = (CoreView) getLayoutInflater().inflate(R.layout.core, null); //extends DrawerLayout
ViewGroup decor = (ViewGroup) getWindow().getDecorView();
ViewGroup decorChild = (ViewGroup) decor.getChildAt(0);
decor.removeView(decorChild);
decor.addView(coreView);
coreView.getContentFrame().addView(decorChild);
this technique I borrowed from SlidingMenulib.
But as a result actionbar is absent and all the views are behind notification area like on screenshot:
So question is why it is like this, what am I doing wrong and how can I reach the goal ?