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 -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -