title: how to Customize the Contextual Action Bar using appCompat in material design
body: <p><code>MainActivity.java</code></p>
  
  <p>I've implemented <code>MultiChoiceModeListener</code> in this class and below is the code:</p>
  
  <p>on <code>listView</code>:</p>
  
  <pre><code>listView.setMultiChoiceModeListener(MainActivity.this);
  listView.setChoiceMode(listView.CHOICE_MODE_MULTIPLE_MODAL);
  
  
      @Override
      public boolean onActionItemClicked(ActionMode arg0, MenuItem arg1) {
          switch (arg1.getItemId()) {
          case R.id.save:
  
              // Close CAB
              arg0.finish();
              return true;
  
          case R.id.saveto:
  
  
              // Close CAB
              arg0.finish();
              return true;
          default:
              return false;
          }
      }
  
      @Override
      public boolean onCreateActionMode(ActionMode arg0, Menu arg1) {
          arg0.getMenuInflater().inflate(R.menu.save_menu, arg1);
          return true;
  
      }
  
      @Override
      public void onDestroyActionMode(ActionMode arg0) {
          listadaptor.removeSelection();
      }
  
      @Override
      public boolean onPrepareActionMode(ActionMode arg0, Menu arg1) {
          return false;
      }
  
      @Override
      public void onItemCheckedStateChanged(ActionMode arg0, int arg1, long arg2,
              boolean arg3) {
  
          final int checkedCount = listView.getCheckedItemCount();
          arg0.setTitle(checkedCount + " "+getResources().getString(R.string.selected));
          listadaptor.toggleSelection(arg1);
      }
  </code></pre>
  
  <p>style.xml</p>
  
  <pre><code> &lt;style name="AppTheme.Base" parent="Theme.AppCompat.Light"&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/White&lt;/item&gt;
          &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="windowActionModeOverlay"&gt;true&lt;/item&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="actionModeStyle"&gt;@style/LStyled.ActionMode&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- Application theme. --&gt;
      &lt;style name="AppTheme" parent="AppTheme.Base"&gt;
          &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt;
      &lt;/style&gt;
  
      &lt;style name="LStyled.ActionMode" parent="@style/Widget.AppCompat.ActionMode"&gt;
          &lt;item name="background"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="ActionBarThemeOverlay" parent="Theme.AppCompat.Light"&gt;
          &lt;item name="android:textColorPrimary"&gt;#fff&lt;/item&gt;
          &lt;item name="colorControlNormal"&gt;#fff&lt;/item&gt;
          &lt;item name="colorControlHighlight"&gt;#3fff&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="HeaderBar"&gt;
          &lt;item name="android:background"&gt;#009688&lt;/item&gt;
          &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="ActionBarPopupThemeOverlay" parent="ThemeOverlay.AppCompat.Light"&gt;
          &lt;item name="android:textColor"&gt;#000&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>below is my screenshots:</p>
  
  <p><img src="https://i.stack.imgur.com/6vAGH.png" alt="this is my material design screen"></p>
  
  <p><img src="https://i.stack.imgur.com/MQ25E.png" alt="actionmode material design screen"></p>
  
  <p>you can see both screenshots, in second screenshot, actionmode background is white and text color is also white.. i want to change it to first screenshots color which is in top.</p>