반응형
Hide the navigation bar - Android
https://developer.android.com/training/system-ui/navigation#behind
This lesson describes how to hide the navigation bar, which was introduced in Android 4.0 (API level 14).
Even though this lesson focuses on hiding the navigation bar, you should design your app to hide the status bar at the same time, as described in Hiding the Status Bar. Hiding the navigation and status bars (while still keeping them readily accessible) lets the content use the entire display space, thereby providing a more immersive user experience.
You can hide the navigation bar using the SYSTEM_UI_FLAG_HIDE_NAVIGATION flag. This snippet hides both the navigation bar and the status bar:
View decorView = getWindow().getDecorView();
// Hide both the navigation bar and the status bar.
// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
// a general rule, you should design your app to hide the status bar whenever you
// hide the navigation bar.
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
반응형
'프로그래밍 > App' 카테고리의 다른 글
Samsung Flow : 태블릿/PC와 갤럭시 휴대폰의 연동 (0) | 2019.09.02 |
---|---|
Wi-Fi Transfer : PC와 무선기기간의 파일을 전송하는 앱 (0) | 2019.09.02 |
https://apkpure.com/kr/ - 다운받을수 없는 안드로이드 앱 찾기&다운로드 (0) | 2019.08.19 |
안드로이드 : 웹뷰 404 에러처리 (0) | 2019.08.19 |
하이브리드앱, 웹뷰(WebView) 설정하기 - 안드로이드 (0) | 2019.08.14 |