---
title: "android应用去掉title bar 及全屏处理方法 "
author: "jguangyou"
date: "2012-02-03T18:20:02Z"
tags: []
categories: ["移动开发"]
slug: "android-title-bar"
draft: false
lastmod: "2012-02-03T18:20:02Z"
id: 1392432
url: "https://deep-fish.iteye.com/blog/1392432"
---

一、所有Activty界面全去掉：

修改AndroidManifest.xml  
在application 标签中添加android:theme="@android:style/Theme.NoTitleBar"

 

全屏处理方法：

 

&lt;application android:icon="@drawable/icon" android:label="@string/app\_name"  
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"&gt;

 

二、代码方式及对某个Activty有效：

在onCreate中增加：requestWindowFeature(Window.FEATURE\_NO\_TITLE);

 

void onCreate(Bundle savedInstanceState) {

...

requestWindowFeature(Window.FEATURE\_NO\_TITLE);

...

}