title: Custom SearchView style not applied
body: <p>I´m trying to set a custom style on my <code>SearchView</code> in the toolbar, but none of the proposed solutions that I´ve found works and the style isn´t applied. I´m using the <code>androidx.appcompat.widget.SearchView</code> version of the SearchView.</p>
  
  <p>In the <code>styles.xml</code> I´ve created a custom style for the SearchView and applied it to the AppTheme but the appearance of the SearchView doesn´t change. I´ve already tried multiple differen attributes of the style but none changes anything.</p>
  
  <p><strong>styles.xml:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;resources&gt;
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&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;item name="searchViewStyle"&gt;@style/CustomSearchViewStyle&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.Toolbar" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
          &lt;item name="searchViewStyle"&gt;@style/CustomSearchViewStyle&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="CustomSearchViewStyle" parent="Widget.AppCompat.SearchView"&gt;
          &lt;item name="searchIcon"&gt;@drawable/ic_custom_search&lt;/item&gt;
          &lt;item name="suggestionRowLayout"&gt;@layout/custom_search_row&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>menu.xml:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
      &lt;item
          android:id="@+id/action_search"
          android:icon="@drawable/ic_search_white_24dp"
          android:orderInCategory="100"
          android:title="@string/search"
          app:actionViewClass="androidx.appcompat.widget.SearchView"
          app:showAsAction="collapseActionView|ifRoom" /&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>I just want to modify the clock icon in the recent searches suggestion list, but the custom style isn´t applied and I can´t find any other way to do it.</p>
  
  <p><strong>Edit 1:</strong>
  I´ve just added the same <code>androidx.appcompat.widget.SearchView</code> to a regular layout-file and then the style is applied correctly. However when used as <code>actionViewClass</code> in the menu the style is ignored. Do you know how to also apply the style when it is used as <code>actionViewClass</code>?</p>