Android2017. 3. 20. 11:51

 

1. Activity 의 onCreate 에 추가 하는 방법


View decorView = getWindow().getDecorView();

// 상태바 숨김 (Fullscreen)

int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView
.setSystemUiVisibility(uiOptions);

// ActionBar 숨김

ActionBar actionBar = getActionBar();
actionBar
.hide();

자세한 설명은 아래에서 참조.

https://developer.android.com/training/system-ui/status.html

 

2. AndroidMainfest.xml 에서 설정 하는 방법 ( 액션바 숨기기 )

android:theme="@style/Theme.AppCompat.NoActionBar">

 

 

Posted by 비니미니파