Android(安卓)中设置全屏的方法
16lz
2022-06-16
【代码中设置】
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // set full screen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.iff_main); }
【 Maifest 配置文件中设置 】
<activity android:name="com.pbi.iff.IFFActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
更多相关文章
- android设置多个类似APP其中的一个为默认
- Android实现动态切换横竖屏,保存横竖屏数据(用Preference存储)
- Android获取、设置Wifi状态
- [Android实例] android多点触摸demo .
- android中检查是否联网code
- Android程序开发:简单电话拨号器
- android 相对布局例子代码
- Android(安卓)设置View背景图网络url
- 从头开始学Android—Android(安卓)Studio(二)