android - u2020+Mortar DrawerLayout and actionbar issue -


i'm playing around u2020-mortarmode of jake wharton's u2020sample app contains navigationdrawer. i'm trying make navidationdrawer move content wit actionbar opens. i'm doing 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 borrowed slidingmenulib.

but result actionbar absent , views behind notification area on screenshot: screenshot question why this, doing wrong , how can reach goal ?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -