在anroid 的AndroidManifest.xml里添加
<application
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"去掉顶部title和状态栏全屏
android:icon="@drawable/icon" android:label="@string/app_name">
</application>
手动写添加的话比较麻烦,基本每个activity里面都要写下面的代码
//取消顶部标题
requestWindowFeature(Window.FEATURE_NO_TITLE);
//设置全屏
getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,WindowManager.LayoutParams. FLAG_FULLSCREEN);
<application
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"去掉顶部title和状态栏全屏
android:icon="@drawable/icon" android:label="@string/app_name">
</application>
手动写添加的话比较麻烦,基本每个activity里面都要写下面的代码
//取消顶部标题
requestWindowFeature(Window.FEATURE_NO_TITLE);
//设置全屏
getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,WindowManager.LayoutParams. FLAG_FULLSCREEN);