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);

 

posted @ 2013-10-24 09:00  superping  阅读(243)  评论(0编辑  收藏  举报