๐Ÿค”<Android>statusBarํฐ์ƒ‰์œผ๋กœ ๋ฐ”๋€Œ๋ฉด์„œ ์•„์ด์ฝ˜ ์ƒ‰์ƒ ๋ฐ”๊พธ๊ธฐ

3190 ๋‹จ์–ด androidstatusBarandroid

๐Ÿ“Œ๋ฌธ์ œ์ 

์•ก์…˜๋ฐ”๋ฅผ ์ง€์šฐ๊ณ  statusBar์ƒ‰์ƒ์„ ํฐ์ƒ‰์œผ๋กœ ๋ฐ”๊พธ์—ˆ๋Š”๋ฐ statusBar์— ์žˆ๋Š” ์•„์ด์ฝ˜๋“ค์ด ํฐ์ƒ‰์ด๋ผ statusBar์ƒ‰์ƒ๊ณผ ๊ฒน์ณ ๋ณด์ด์ง€ ์•Š์•„์„œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“Œํ•ด๊ฒฐ๋ฐฉ๋ฒ•

ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ–ˆ์Šต๋‹ˆ๋‹ค. <item name = "android:windowLightStatusBar">true</item> ์ด ์ฝ”๋“œ๋ฅผ ๋ฐ‘์— ์ ์–ด์ฃผ์–ด ํ•ด๊ฒฐ์„ ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
๊ทธ๋ฆฌ๊ณ  ์ด ์ฝ”๋“œ๋Š” API 23 ์ด์ƒ์—์„œ๋งŒ ์ž‘๋™ํ•œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="Theme.Yogiyo_clone" parent="Theme.MaterialComponents.DayNight.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">@color/white</item>
        <!-- Customize your theme here. -->

        <item name = "android:windowLightStatusBar">true</item>
    </style>
</resources>

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ