public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);//设置无标题requestWindowFeature(Window.FEATURE_NO_TITLE);//设置全屏getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);setContentView(R.layout.main);}

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"      package="com.andyidea"      android:versionCode="1"      android:versionName="1.0">    <uses-sdk android:minSdkVersion="8" />    <application android:icon="@drawable/icon" android:label="@string/app_name">        <activity android:name=".login.LoginActivity"                   android:theme="@android:style/Theme.NoTitleBar.Fullscreen"                  android:label="@string/app_name">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>

更多相关文章

  1. android webview设置自适应任意大小的pc网页
  2. Android(安卓)去掉title bar的3个方法
  3. Android中设置全屏的方法
  4. android之渐变色背景
  5. Android(安卓)跳转+两种ListView+ListheaderView
  6. android 横屏 竖屏 全屏 当前屏幕宽 高
  7. Android中自动跳转到系统设置界面
  8. TabLayout 设置指示器宽度问题
  9. 自定义Android标题栏

随机推荐

  1. 设置Activity全屏
  2. Qt on Android(安卓)Episode 4(翻译)
  3. 配置adb
  4. Android(安卓)显示不满屏的问题解决
  5. Android(安卓)- 设备的DeviceId
  6. Android之网络请求6————OkHttp源码3:
  7. Android(安卓)Test 基础知识
  8. android camera(四):camera 驱动 GT2005
  9. Android(安卓)自定义view(二) 如何实现自
  10. Android(安卓)Studio主要目录及文件简介