Android

android status bar navigation bar 색상변경

Machine_웅 2021. 7. 12. 11:51
728x90
반응형
<style name="Theme.Project.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

<style name="Theme.Project.NoActionBar.LightStatusBar_LightNavigationBar" parent="Theme.Project.NoActionBar">
    <!-- Status bar 글자색 -->
    <item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
    <!-- Navigation bar icon 색상 -->
    <item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
</style>

<style name="Theme.Project.NoActionBar.LightStatusBar_DarkNavigationBar" parent="Theme.Project.NoActionBar">
    <!-- Status bar 글자색 -->
    <item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
    <!-- Navigation bar icon 색상 -->
    <item name="android:windowLightNavigationBar" tools:targetApi="27">true</item>
</style>

<style name="Theme.Project.NoActionBar.DarkStatusBar_DarkNavigationBar" parent="Theme.Project.NoActionBar">
    <!-- Status bar 글자색 -->
    <item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
    <!-- Navigation bar icon 색상 -->
    <item name="android:windowLightNavigationBar" tools:targetApi="27">true</item>
</style>

<style name="Theme.Project.NoActionBar.DarkStatusBar_LightNavigationBar" parent="Theme.Project.NoActionBar">
    <!-- Status bar 글자색 -->
    <item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
    <!-- Navigation bar icon 색상 -->
    <item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
</style>
728x90
반응형