全屏(隐藏通知栏和APP名称栏)
Activity里设置
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.index);
横屏
manifest.xml里设置
android:screenOrientation="landscape"