去掉actionbar :getActionBar().hide();
全屏方法一:
<activity
android:name="com.imax.weather.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
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);
}
android 去掉actionbar 隐藏标题栏 全屏