Color Primary Dark is not working
<p>I set the color primary dark before in my color.xml file and the status bar color was the same color that color primary dark was too! but a few hours ago, I made a menu resource file and for creating a search button in my toolbar!. when I run my code, I saw that the color primary dark disappeared and is not working. I searched a lot to understand what is the problem but I did not find any thing. please guide me to fix this problem.</p>

<p>style.xml:
</p>

<pre><code>&lt;!-- Base application theme. --&gt;
&lt;style name="AppTheme" parent="AppTheme.Base"&gt;

&lt;/style&gt;

&lt;style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"&gt;
    &lt;!-- Customize your theme here. --&gt;
    &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
    &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
    &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;

&lt;/style&gt;
</code></pre>

<p></p>

<p>style-v21 :

</p>

<pre><code>&lt;style name="AppTheme" parent="AppTheme.Base"&gt;
    &lt;!-- Customize your theme here. --&gt;
    &lt;item name="android:windowTranslucentStatus"&gt;true&lt;/item&gt;
    &lt;item name="android:navigationBarColor"&gt;@color/colorNavBar&lt;/item&gt;
    &lt;item name="android:windowContentTransitions"&gt;true&lt;/item&gt;
    &lt;item name="android:windowAllowEnterTransitionOverlap"&gt;true&lt;/item&gt;
    &lt;item name="android:windowAllowReturnTransitionOverlap"&gt;true&lt;/item&gt;
    &lt;item name="android:windowSharedElementEnterTransition"&gt;@android:transition/move&lt;/item&gt;
    &lt;item name="android:windowSharedElementExitTransition"&gt;@android:transition/move&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p></p>

<p>toolbar.xml :</p>

<pre><code>&lt;android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:fitsSystemWindows="true"
android:minHeight="?attr/actionBarSize"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:background="?attr/colorPrimary"
android:layout_gravity="start"&gt;
&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/toolbar_title"
    android:text="@string/app_name_persian"
    android:textSize="19sp"
    android:textStyle="bold"
    android:textColor="@android:color/white"
    android:layout_gravity="right"/&gt;
&lt;EditText
    android:layout_marginRight="20dp"
    android:id="@+id/searchEditText"
    android:layout_width="180dp"
    android:textSize="10sp"
    android:hint="@string/search_hint"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:visibility="invisible"/&gt;
</code></pre>

<p></p>

<p>color.xml :</p>

<pre><code>&lt;resources&gt;
&lt;color name="colorPrimary"&gt;#0cac77&lt;/color&gt;
&lt;color name="colorPrimaryDark"&gt;#73ac95&lt;/color&gt;
&lt;color name="colorAccent"&gt;#20efd6&lt;/color&gt;
&lt;color name="colorNavBar"&gt;#73ac95&lt;/color&gt;
&lt;color name="colorNavDrawerBackColor"&gt;#f4f3f3&lt;/color&gt;
&lt;color name="colorCreationDate"&gt;#4acc82&lt;/color&gt;
&lt;color name="colorDeadDate"&gt;#d77177&lt;/color&gt;
&lt;color name="colorDutyName"&gt;#e5e8e9&lt;/color&gt;
</code></pre>

<p></p>