2018 年 08 月 21 日的存档

Android设置全屏,退出全屏、沉浸式、隐藏虚拟按键

一: 设置全屏 方式一: public void setFullScreen(Activity act){ act.requestWindowFeature(Window.FEATURE_NO_TITLE);// 隐藏标题 act.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);// 设置全屏 } 方式二: <style name="FullSceneTheme" parent="android:Theme.Black"> <!-- All customizations that are NOT specific to a particular API-level can go here. --> <item name="android:windowNoTitle" ......