안드로이드를 시작하고 작업을 하게 되면 매번 만나는 귀찮은 애가 있다
당장 업애주도록 하자
이 보라색 바를 타이틀 바 혹은 상태바라고 하나 보다
안드로이드 스튜디오 보라색 바 치니까 알아내었다
타이틀 바 없애는 법
- res를 펼쳐 준다
- values를 펼쳐 준다
- themes 파일 아래 themes.xml 파일이 두 개가 있다 ( night로 쓰여진 것으로 보아 다크모드를 적용 하나봄)
- 아래의 코드를 themes.xml에 넣어주자
<item name="windowNoTitle">true</item>
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.BataJoinBook" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<item name="windowNoTitle">true</item> //이거 넣어주면 된다 --------------------------------------------------------------
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
상태바 없애는 법
<item name="android:windowFullscreen">true</item>
'애기 개발자(현재)' 카테고리의 다른 글
비밀번호 찾기 프로세스 초보편 (0) | 2024.02.26 |
---|---|
이메일 인증번호 인증 (0) | 2023.12.26 |
'compileSdkVersion' to be set to 34 or higher.Compilation target for module ':app' is 'android-33' 해결법 (0) | 2023.11.30 |
aws 보안그룹 인바운드 설정하기 간단하게 보기 (0) | 2023.09.14 |
firebase란 무엇일까 (0) | 2023.09.14 |