ITeye博客

android应用去掉title bar 及全屏处理方法

jguangyou · 2012-02-03 18:20 · android · 移动开发 · Markdown

一、所有Activty界面全去掉:

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

 

全屏处理方法:

 

<application android:icon="@drawable/icon" android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

 

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

在onCreate中增加:requestWindowFeature(Window.FEATURE_NO_TITLE);

 

void onCreate(Bundle savedInstanceState) {

...

requestWindowFeature(Window.FEATURE_NO_TITLE);

...

}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。