I’m using a SearchView
in my application. Now I just want to get the text typed in the SearchView
and do something this it. But I don’t want to use any extra buttons. I just want to get the result when I’m typing in SearchView
box.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
it's will solve some thing like this in kotlin :
You should use
onQueryTextChange()
.For example:
You can check for more information: https://developer.android.com/reference/android/widget/SearchView.OnQueryTextListener