I have a SearchView:
<SearchView
android:id="@+id/searchBar"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:visibility="visible"/>
I want to add a custom action when the submit button is pressed.
This is what I have so far:
searchBar.setOnSearchClickListener {
//do some stuff
}
All the information I found is old and not in kotlin.
How can I get trigger an action when the search icon on the keyboard is tapped?