title: colorPrimary and colorPrimaryDark are ignored within application theme
body: <p>(Note: This is somewhat related to <a href="https://stackoverflow.com/questions/30180091/when-using-actionmode-the-status-bar-turns-black-on-lollipop">When using ActionMode, the status bar turns black on Lollipop</a> so there might be some additional information there that I accidentally omitted from this question)</p>
  
  <p>I have the following theme defined:</p>
  
  <pre><code>&lt;style name="Material" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/app_green&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/app_green_dark&lt;/item&gt;
  
      &lt;item name="android:textColorPrimary"&gt;@color/action_bar_text&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/secondary_text_color&lt;/item&gt;
      &lt;item name="android:color"&gt;@color/secondary_text_color&lt;/item&gt;
  
      &lt;item name="colorAccent"&gt;@color/app_green&lt;/item&gt;
      &lt;item name="android:editTextColor"&gt;@color/secondary_text_color&lt;/item&gt;
  
      &lt;item name="textHeaderMaxLines"&gt;@integer/text_header_max_lines&lt;/item&gt;
      &lt;item name="trackAbstractMaxLines"&gt;@integer/track_abstract_max_lines&lt;/item&gt;
      &lt;item name="activatableItemBackground"&gt;@drawable/activatable_item_background&lt;/item&gt;
  
      &lt;!-- ActionMode Styles --&gt;
      &lt;item name="android:windowActionModeOverlay"&gt;true&lt;/item&gt;
      &lt;item name="windowActionModeOverlay"&gt;true&lt;/item&gt;
      &lt;item name="actionModeStyle"&gt;@style/Material.Widget.ActionMode&lt;/item&gt;
  
      &lt;!-- Global UI Assignments --&gt;
      &lt;item name="android:spinnerStyle"&gt;@style/Material.Widget.Spinner&lt;/item&gt;
  
      &lt;item name="android:buttonStyle"&gt;@style/Material.Widget.Button&lt;/item&gt;
      &lt;item name="android:checkboxStyle"&gt;@style/Material.Widget.Checkbox&lt;/item&gt;
      &lt;item name="android:textAppearance"&gt;@android:style/TextAppearance&lt;/item&gt;
  
      &lt;item name="android:popupWindowStyle"&gt;@style/Material.Window.Popup&lt;/item&gt;
  
      &lt;!-- ViewPager --&gt;
      &lt;item name="vpiCirclePageIndicatorStyle"&gt;@style/Material.Activity.Login.ViewPagerIndicator.CustomCircle&lt;/item&gt;
      &lt;item name="buttonBarStyle"&gt;?android:buttonBarStyle&lt;/item&gt;
      &lt;item name="buttonBarButtonStyle"&gt;?android:buttonBarButtonStyle&lt;/item&gt;
      &lt;item name="indeterminateProgressStyle"&gt;?android:indeterminateProgressStyle&lt;/item&gt;
  
      &lt;!-- API 14+ (compatibility) --&gt;
      &lt;item name="listPreferredItemPaddingLeft"&gt;@dimen/compat_list_preferred_item_padding_left&lt;/item&gt;
      &lt;item name="listPreferredItemPaddingRight"&gt;@dimen/compat_list_preferred_item_padding_right&lt;/item&gt;
      &lt;item name="listPreferredItemHeightSmall"&gt;@dimen/compat_list_preferred_item_height_small&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I use this theme as follows:</p>
  
  <pre><code>&lt;application
      android:name=".MyApp"
      android:icon="@drawable/icon"
      android:logo="@null"
      android:label="@string/app_name"
      android:theme="@style/Material"
      android:hardwareAccelerated="true"
      android:allowBackup="true"&gt;
      &lt;activity
          android:name=".ui.MainActivity"
          android:label="@string/title_activity_main"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".ui.DetailActivity"
          android:label="Details"
          android:theme="@style/Material.Activity" &gt;
          &lt;meta-data
              android:name="android.app.searchable"
              android:resource="@xml/searchable"/&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>All of my activities derive from <code>NavigationDrawerActivity</code>:</p>
  
  <pre><code>/**
   * An {@link Activity} that supports a Navigation Drawer, which is a pull-out panel for navigation
   * menus. This drawer is pulled out from the left side of the screen (right side on RTL devices).
   */
  public class NavigationDrawerActivity extends ActionBarActivity
    implements AdapterView.OnItemClickListener {
  
    private static final String LOGTAG = NavigationDrawerActivity.class.getSimpleName();
  
    private DrawerLayout mDrawerLayout;
    private ListView mDrawerList;
    private LayoutInflater mInflater;
    private NavigationDrawerItemAdapter mAdapter;
    private ActionBarDrawerToggle mDrawerToggle;
  
    private NavigationDrawerItem[] mNavigationDrawerItems;
  
    private Toolbar mAppBar;
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  // We have to call super.setContentView() here because BaseActivity redefines setContentView(),
  // and we don't want to use that.
  super.setContentView(R.layout.navigation_drawer);
  
  mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
      setupNavigationDrawer();
    }
  
    @Override
    protected void onPostCreate(Bundle savedInstanceState) {
  super.onPostCreate(savedInstanceState);
  
      // Sync the toggle state after onRestoreInstanceState has occurred.
      mDrawerToggle.syncState();
    }
  
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
      super.onConfigurationChanged(newConfig);
      mDrawerToggle.onConfigurationChanged(newConfig);
    }
  
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
      return true;
    }
  
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
      int id = item.getItemId();
  
      switch(id) {
        case android.R.id.home:
          return mDrawerToggle.onOptionsItemSelected(item);
      }
  
      return super.onOptionsItemSelected(item);
    }
  
    /**
     * Toggles the state of the navigation drawer (i.e. closes it if it's open, and opens it if
     * it's closed).
     */
    public void toggleNavigationDrawer() {
      if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) {
        closeNavigationDrawer();
      } else {
        openNavigationDrawer();
      }
    }
  
    /**
     * Opens the navigation drawer.
     */
    public void openNavigationDrawer() {
      mDrawerLayout.openDrawer(GravityCompat.START);
    }
  
    /**
     * Closes the navigation drawer.
     */
    public void closeNavigationDrawer() {
      mDrawerLayout.closeDrawer(GravityCompat.START);
    }
  
    /**
     * Initializes items specific to the navigation drawer.
     */
    private void setupNavigationDrawer() {
      mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
          mDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.wiw_green));
  
          mAppBar = (Toolbar) findViewById(R.id.app_bar);
          setSupportActionBar(mAppBar);
  
          ActionBar actionBar = getSupportActionBar();
          actionBar.setDisplayHomeAsUpEnabled(true);
          actionBar.setHomeButtonEnabled(true);
          actionBar.setDisplayShowHomeEnabled(false);
  
          mDrawerToggle = new ActionBarDrawerToggle(
            this,                  /* Our context (Activity that hosts this drawer) */
            mDrawerLayout,         /* The DrawerLayout where the nav drawer will be drawn */
            R.string.drawer_open,  /* Description of "open drawer", for accessibility */
            R.string.drawer_close  /* Description of "close drawer", for accessibility */
          ) {
  
            /**
             * Called when a drawer has settled in a completely closed state.
             */
            public void onDrawerClosed(View view) {
              super.onDrawerClosed(view);
              supportInvalidateOptionsMenu();
            }
  
            /**
             * Called when a drawer has settled in a completely open state.
             */
            public void onDrawerOpened(View drawerView) {
              super.onDrawerOpened(drawerView);
              supportInvalidateOptionsMenu();
            }
          };
  
          mDrawerList = (ListView) mDrawerLayout.findViewById(R.id.drawer_list);
  
          mNavigationDrawerItems = buildNavDrawerItemsList();
  
          setupAdapter(mNavigationDrawerItems);
  
          setupNavigationDrawerHeader();
  
          mDrawerLayout.setDrawerListener(mDrawerToggle);
          mDrawerList.setOnItemClickListener(this);
        }
  
        @Override
        public void onItemClick(AdapterView&lt;?&gt; parent, View aView, int aPosition, long aId) {
          // Code not relevant
        }
  
        /**
         * Set the inner content view of this {@link NavigationDrawerActivity} to have a given layout.
         *
         * @param aLayoutId The id of the layout to load into the inner content view of this activity.
         */
        public void setDrawerContent(int aLayoutId) {
          LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          ViewGroup root = (ViewGroup)findViewById(R.id.drawer_content);
          inflater.inflate(aLayoutId, root);
        }  
      }
  </code></pre>
  
  <p>In <code>NavigationDrawerActivity</code>, I actually have to manually set the status bar background color (see the second line of <code>setupNavigationDrawer()</code>), rather than having it automatically set from <code>colorPrimaryDark</code> on Android 5.0 devices. Further, changing the color in either <code>colorPrimary</code> or <code>colorPrimaryDark</code> does <em>not</em> change the color of the status bar (although, this could be an effect from having <code>windowTranslucentStatus</code> set to <code>true</code>) or the <code>Toolbar</code> background color.</p>
  
  <p>I'm wondering what I can do to alleviate this problem, as I think it's causing other problems in my Material-esque theme.</p>