Status Bar 색상 지정

<resources>
 
<!-- inherit from the material theme -->
 
<style name="AppTheme" parent="android:Theme.Material">
   
<!-- Main theme colors -->
   
<!--   your app branding color for the app bar -->
   
<item name="android:colorPrimary">@color/primary</item>
   
<!--   darker variant for the status bar and contextual app bars -->
   
<item name="android:colorPrimaryDark">@color/primary_dark</item>
   
<!--   theme UI controls like checkboxes and text fields -->
   
<item name="android:colorAccent">@color/accent</item>
 
</style>
</resources>

Status Bar 투명처리

<resources>
<!-- inherit from the material theme -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">">@android:color/transparent</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
</resources>

Posted by outliers
,