-
타이틀 바 없애기 [안드로이드]Android 2020. 3. 14. 21:03
1.AndroidManifest 에서 수정
android:theme="@style/AppTheme"
->android:theme="@style/Theme.AppCompat.NoActionBar"
2.styles.xml 에서 수정
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
// 아래 두개 항목 추가 하면 됨
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
</resources>
3. MainActivity.java 에서 수정
>>reference
https://bottlecok.tistory.com/29
'Android' 카테고리의 다른 글
자바 ] Iterator 쓰는 이유 //왜 굳이 쓰나 했더니 (0) 2020.03.29 Grandle in Eclipse] 외부라이브러리 넣은후 REFRESH!! (0) 2020.03.20 안드로이드 코드 스니펫 | 예제 (0) 2020.03.16