I have searched literally everywhere on this but found no useful info or question on this.
How do I set onClickLister on search icon in SearchView.?
I changed the default search icon to my own drawable.
<androidx.appcompat.widget.SearchView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/action_search"
android:layout_marginTop="20dp"
app:queryHint="Search..."
app:iconifiedByDefault="false"
app:searchIcon="@drawable/back_icon2"
android:theme="@style/WhiteCursorSearchView"
android:layout_alignParentTop="true"
/>
app:searchIcon="@drawable/back_icon2"
Now I want to set onClick Listener to this new drawable which is in the searchView NOT the whole searchView.
Also, this is a search widget not a search dialog. I am not using this in any actionbar.
NOTE - I have done a comprehensive search and research on this but found nothing useful.