How to change the toolbar SearchView Underline color to GRAY
<p>I am trying to change the underline color of search view when we expand the search bar`  </p>

<pre><code>    SearchView.SearchAutoComplete autoCompleteTextView = (SearchView.SearchAutoComplete) searchView.findViewById(R.id.search_src_text);
    autoCompleteTextView.setCursorVisible(true);
    autoCompleteTextView.setTextColor(ContextCompat.getColor(this, R.color.textcolor_light_gray));
    autoCompleteTextView.setHintTextColor(autoCompleteTextView.getTextColors().withAlpha(255));
    autoCompleteTextView.setTextSize(16);

    View searchplate = (View)searchView.findViewById(android.support.v7.appcompat.R.id.search_plate);
    searchplate.setBackgroundResource(R.drawable.autocomplete_bg);
</code></pre>

<p>Here i used the theme to change the color also</p>

<pre><code> &lt;style name="MySearchViewStyle" parent="Widget.AppCompat.Light.SearchView"&gt;
    &lt;!-- Background for the search query section (e.g. EditText) --&gt;
    &lt;item name="queryBackground"&gt;@color/darkgray&lt;/item&gt;

&lt;/style&gt;
</code></pre>

<p>but nothing working for me. any one help me pls...</p>