강의

멘토링

커뮤니티

Inflearn Community Q&A

choidaehwan92822002's profile image
choidaehwan92822002

asked

[Beginner] Creating an Android Community App (Android Kotlin)

Creating Projects and Making Splash Screens

상태바 색깔변경 하는법

Written on

·

246

3

강의에서는 이것만 바꾸라고 되어있는데

<item name="colorPrimaryVariant">@color/main_yellow</item>

애초에 'statusBarColor'가 저처럼 없는분들은 이걸 추가하셔야합니다!!

<item name="android:statusBarColor" tools:targetApi="l">@color/main_yellow</item>

그래서 총 코드는 이렇게 됩니다! 참고하세여

<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="Base.Theme.MySoloLife" parent="Theme.Material3.DayNight.NoActionBar">
        <!-- Customize your light theme here. -->
        <item name="colorPrimaryVariant">@color/main_yellow</item>
        <item name="android:statusBarColor" tools:targetApi="l">@color/main_yellow</item>
        <!-- <item name="colorPrimary">@color/my_light_primary</item> -->
    </style>

    <style name="Theme.MySoloLife" parent="Base.Theme.MySoloLife" />
</resources>
androidkotlinfirebase

Answer 1

0

bokchi님의 프로필 이미지
bokchi
Instructor

수강 팁 공유 감사합니다~

choidaehwan92822002's profile image
choidaehwan92822002

asked

Ask a question