티스토리 뷰

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=".ExClass" 

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>






ExClass.java  Code에 적용
setContentView() 보다 먼저 처리되야 한다.

import android.app.Ativity;

import android.os.Bundle;


public class ExClass extends Activity {

@Override//클레스 초기화

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.main);

}

}

 

저작자 표시
신고
댓글
댓글쓰기 폼