AndroidMenifest.xml에 적용

Application 전체에 적용
application에 android:theme="@android:style/Theme.NoTitleBar" 삽입

<application 

android:icon="@drawable/icon" 

android:label="@string/app_name"

android:debuggable="true"

android:theme="@android:style/Theme.NoTitleBar"

>


특정 Activity 에 적용
activity에 android:theme="@android:style/Theme.NoTitleBar" 삽입

<activity 

android:name=".TestClass" 

android:label="@string/app_name"

android:theme="@android:style/Theme.NoTitleBar"

>

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />

</intent-filter>

</activity>



Code에 적용

TestClass.java
setContentView() 보다 먼저 처리되야 한다.

import android.app.Ativity;

import android.os.Bundle;


public class TestClass extends Activity {

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.main);

}

}

Posted by 예배하는 프로그래머