suyeoniii
수바리의 코딩일기
suyeoniii
전체 방문자
오늘
어제
  • 분류 전체보기
    • 🪓 삽질일기
    • 🔙 Backend
      • 🟢 Node.js
      • 🐈‍⬛ NestJS
      • 🌿 Springboot
      • 🗄️ Database
    • 🌸 Frontend
      • 🌐 React.js
      • 💚 Vue.js
      • 🤖 Android
    • 🕹️ 알고리즘
      • 💯 코딩테스트
    • 🔠 프로그래밍 언어
      • 💛 Javascript
      • 💙 Typescript
    • 🚀 배포
    • 🐱 Git
    • etc.
      • 개발환경
      • 오픈 API
      • 개념정리
      • 커뮤니티
    • AI
      • 생성형 AI
    • 회고

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 알고리즘
  • Git
  • ec2
  • html
  • springboot
  • ubuntu
  • android
  • MAC
  • nodejs
  • 회고
  • node.js
  • Spring Boot
  • 백준
  • node
  • C++
  • javascript
  • MySQL
  • AWS
  • vue
  • java

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
suyeoniii

수바리의 코딩일기

[Android] 타이틀바 없애기
🌸 Frontend/🤖 Android

[Android] 타이틀바 없애기

2021. 5. 22. 02:34
반응형

처음에 프로젝트를 생성하게 되면 실행 시 타이틀바가 기본적으로 붙어있다.

 

내 스타일은 아니라 없애주겠다!

 

없어졌다!

 

res/values/styles.xml

<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- 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>

name = AppTheme으로 설정해주고

parent를 NoActionBar로 해주었다

 

이제 manifest에서 적용해주면 된다

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.androidpractice">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

생성한 Apptheme을 theme으로 적용시켜주었다~!

반응형
저작자표시 (새창열림)

'🌸 Frontend > 🤖 Android' 카테고리의 다른 글

[Android][Kotlin] ViewBinding 사용하기  (0) 2021.05.22
[Android] 비밀번호 입력창 만들기  (1) 2021.05.22
[Android] EditText에 border 만들기 (TextView, Button도 가능)  (0) 2021.05.22
[Android] lombok 사용 (getter, setter, constructor 자동생성)  (0) 2021.05.22
[Android][Glide] W/Glide: Load failed for with size  (2) 2021.05.21
    '🌸 Frontend/🤖 Android' 카테고리의 다른 글
    • [Android][Kotlin] ViewBinding 사용하기
    • [Android] 비밀번호 입력창 만들기
    • [Android] EditText에 border 만들기 (TextView, Button도 가능)
    • [Android] lombok 사용 (getter, setter, constructor 자동생성)
    suyeoniii
    suyeoniii
    개발관련 문제 해결, 공부한 내용 등을 업로드합니다.

    티스토리툴바