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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -