Android remove navigation bar -
im facing seriour problem.
im developing app android api 14 (>= android 4.0). test app in devices , work devices have navigation bar inside screen not work. saw answers here , here nothing work.
here image of navigation bar: image navigation bar
i have 2 questions:
1) there way hide navigation bar ever? im developing game, dont want bar appear. best solution? maybe not hide , calc size of screen navigation bar?
2) when im developing in graphical layout try hide navigation bar adding theme: theme.holo.noactionbar.fullscreen navigation stills there, when position views, when run app in device, views not in correct position
thanks
try this, call in in activity's oncreate
public void makefullscreen() { this.getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen); if(build.version.sdk_int < 19) { //view.system_ui_flag_immersive on api 19+ this.getwindow().getdecorview() .setsystemuivisibility(view.system_ui_flag_hide_navigation); } else { this.getwindow().getdecorview() .setsystemuivisibility(view.system_ui_flag_hide_navigation | view.system_ui_flag_immersive); } }
Comments
Post a Comment