colorPrimaryDark not working

Hi All, I tried a lot but I am still not able to change the color of the status bar. Below is my code. Please help.

// Styles.xml

<style name="ThirstyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
  <item name="windowNoTitle">true</item>
  <item name="windowActionBar">false</item>
  <item name="colorPrimary">#5A8622</item>
  <item name="colorPrimaryDark">#5A8622</item>
  <item name="colorAccent">#A88F2D</item>

</style>
@drawable/Splash_Screen true true

// toolbar.axml

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />

Sign In or Register to comment.