android - Navigation Drawer icon not shown -


i using custom action bar. code using -

    getactionbar().setdisplayoptions(actionbar.display_show_custom);     getactionbar().setcustomview(r.layout.custom_home_action_bar);     actionbar bar = getactionbar();     bar.setbackgrounddrawable(new colordrawable(getresources().getcolor(             r.color.color_dark_blue))); 

but when use code customise action bar, navigation drawer icon not shown. when comment these lines shown cannot customise action bar.how can achieve both?

thanks in advance

i got solution. used

getactionbar().setdisplayoptions(actionbar.display_show_custom |  actionbar.display_show_home); 

instead of

getactionbar().setdisplayoptions(actionbar.display_show_custom); 

Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -