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: question why this, doing wrong , how can reach goal ?
Comments
Post a Comment