Android设置全屏

全屏显示

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

 

或者

<activity android:name=".ActivityDemoActivity"  

          android:label="@string/app_name"  

          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"                    

          >  

隐藏任务栏

 getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

 

你可能感兴趣的:(android)