Ibrahem Hamdy
Ibrahem Hamdy

Reputation: 117

How to change color PrimaryDark to color White?

[[image]2]

How to change color Primary Dark to color White????

  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>

    <item name="windowActionBar">false</item>
</style>

Upvotes: 0

Views: 259

Answers (1)

Abhinav Suthar
Abhinav Suthar

Reputation: 106

I think you are talking about the white(light) status bar, you can do this by adding these line in your theme

<style name="AppTheme" parent="Theme.AppCompat.Light">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@android:color/white</item>
    <item name="colorAccent">@color/colorAccent</item>

    <item name="android:statusBarColor">@android:color/white</item>
    <item name="android:windowLightStatusBar">true</item>
</style>

But it will only work for SDK>=23

Upvotes: 2

Related Questions