티스토리 뷰

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);

}

}

 

댓글

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함