How to hide the soft-key bar on Android phone?
问题 When my app starts, I'd like to hide the soft keys bar (in red rectangle) to have a larger screen. How can I hide it? Do I need to show the bar purposely when the app quits? Or it will restore itself automatically after the app quits? Android 4.1, with no hardware keys on phone front. 回答1: Try getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); From official doc The SYSTEM_UI_FLAG_LOW_PROFILE flag replaces the STATUS_BAR_HIDDEN flag. When set, this flag