android - Hide action bar for small screen -
i working on android aap , want hide action bar small screen (240x320) not normal , large screen. possible hide if how?
then need dimenstion first..
here's how dimension:
display display = getwindowmanager().getdefaultdisplay(); int width = display.getwidth(); int height = display.getheight();
see answers here on how screen dimension
here's how hide action bar
getwindow().requestfeature(window.feature_action_bar); getactionbar().hide();
addition v7 support actionbar user, code be:
getwindow().requestfeature(window.feature_action_bar); getsupportactionbar().hide();
Comments
Post a Comment