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(); 

see answers here on how hide action bar


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -