title: How to change searchview icon color?
body: <p>I know there's already a lot of answers for this question here, and I wouldn't be creating another thread if I hadn't already tried everything I saw here. 
  Anyway, the question is pretty simple. I don't mind if the solution comes from XML styling or Java code (both solutions are welcome). I will show everything (most of it anyway) I've tried to solve it.</p>
  
  <p>First of all, the searview icon seems to be immutable by code since I can't change anything from it. My searchview is declared in <code>menu.xml</code> as this</p>
  
  <pre><code>&lt;item android:id="@+id/icon_search"
      android:title="Searchador"
      android:icon="@drawable/ic_search_black_24dp" &lt;!-- icon not used by searchview anyway --&gt;
      android:showAsAction="always"
      android:actionViewClass="android.widget.SearchView"
  /&gt;
  </code></pre>
  
  <p>and inside my <code>onCreateOptionsMenu</code> I have this</p>
  
  <pre><code>SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
  searchMenuItem = menu.findItem(R.id.icon_search);
  searchView = (SearchView) searchMenuItem.getActionView();
  searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
  searchView.setSubmitButtonEnabled(false);
  searchView.setOnQueryTextListener(this);
  MenuTint.colorIcons(this, menu, Color.BLUE);
  return true;
  </code></pre>
  
  <p>The <code>MenuTint.colorIcons(this, menu, Color.BLUE);</code> I got from a special class I found <a href="https://gist.github.com/jaredrummler/ec7dfb73f3235ad8e951" rel="noreferrer">here</a> where it basically changes all my icons color, unfortunately not working for the searchview icon.</p>
  
  <p>I then found some answers suggesting to use a style like this</p>
  
  <pre><code>&lt;style name="SearchViewStyle" parent="Widget.AppCompat.SearchView"&gt;
     &lt;!-- changing my icon, its color and stuff.. --&gt;
     &lt;item name="searchIcon"&gt;@drawable/ic_search&lt;/item&gt;&lt;/style&gt;
  </code></pre>
  
  <p>but I was getting the <code>No resource found that matches the given name 'Widget.AppCompat.SearchView'.</code> error.</p>
  
  <p>I then found that I should add the <code>android-support-app-compat</code> project library instead of just the <code>.jar</code>. It didn't work. I mean, the import worked, but the error kept showing. Then, I found somewhere that I should change the <code>project.properties</code> from target=android-19 to 21 (or higher) but it didn't solved the "No resource found" error.</p>
  
  <p>So I'm pretty much stuck for this simple detail where I need to change the searchview color.</p>
  
  <p>Also, this is not exactly the same question, but I believe it might be solved the in the same way so I will include here: I wanted to change distance between the icons. Someone suggested this solution</p>
  
  <pre><code>&lt;style name="ActionButtonStyle" parent="AppBaseTheme"&gt;
      &lt;item name="android:minWidth"&gt;0dip&lt;/item&gt;
      &lt;item name="android:paddingLeft"&gt;0dip&lt;/item&gt;
      &lt;item name="android:paddingRight"&gt;0dip&lt;/item&gt;                  
  &lt;/style&gt;
  </code></pre>
  
  <p>but I end up getting <a href="https://i.stack.imgur.com/xegJC.png" rel="noreferrer">this</a></p>
  
  <p>As you can see, this approach works for my custom icons only, but not for the searchview icon, neither for the menu overflow icon. I would like to change the distance between ALL icons equally.</p>