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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -