title: Change SearchView little magnifier icon
body: <p>I want to change the little magnifier icon that looks like an <code>EditText</code>'s <code>drawableLeft</code> on a <code>SearchView</code>.</p>
  
  <p>I have tried the following:</p>
  
  <p><a href="https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/search_view.xml#L85" rel="nofollow">This link</a> shows the <strong>layout xml</strong> file for the whole Search Widget. So using this method (similar to reflection) I changed every icon <strong>excepting the little magnifier one</strong>:</p>
  
  <pre><code>int submitButtonId = searchView.getContext().getResources().getIdentifier("android:id/search_go_btn", null, null);
  ImageView imageView = (ImageView) searchView.findViewById(submitButtonId);
  imageView.setImageResource(submitIcon);
  </code></pre>
  
  <p>I tried changing both <code>android:id/search_mag_icon</code> and <code>android:id/search_button</code>, but the little magnifier inside the <code>EditText</code> is still gray (I just want a white one).</p>
  
  <p><strong>Still not beating,</strong> I proceed to make some hypothesis: </p>
  
  <p><em>Since it didn't work it must be both <code>ImageViews</code> (corresponding to <code>android:id/search_mag_icon</code> and <code>android:id/search_button</code>) Then it <strong>must</strong> mean the icon is either a <strong>drawablePadding</strong> <strong>background</strong> or <strong>set up programatically</strong>.
  "There is no <code>android:drawableLeft</code> nor <code>android:drawableRight</code> in the layout file so the first option is wrong...</em></p>
  
  <p>Ergo, I proceed to confirm if it is indeed a <a href="https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable-mdpi/textfield_search_default_holo_dark.9.png" rel="nofollow">background</a>. <strong>NOPE</strong>, the background just covers the blue lines.</p>
  
  <p>So, if the little magnifier is <strong>not</strong> an <code>ImageView</code> <strong>nor</strong> a <code>drawableLeft/Right</code> <strong>nor</strong> a <code>background</code>, <a href="https://cells-source.cs.columbia.edu/plugins/gitiles/platform/frameworks/support/+/android-4.3_r1/v7/appcompat/src/android/support/v7/widget/SearchView.java#1582" rel="nofollow">It must have been set programmatically</a> (Look for the nested class <code>SearchAutoComplete</code>, <strong>BUT NO!!!</strong></p>
  
  <p>So, how do I change this little magnifier icon? I have literally tried everything</p>