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

android应用去掉title bar 及全屏处理方法一、所有Activty界面全去掉:修改AndroidManifest.xml在applicatio

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

一、所有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);

...

}