1

I want to do something after search but for this I must be notified of hiding the keyboard. Is there an action for SearchView like:

override fun onKeyboardHide() {
   /...
}

?

MaxB
  • 387
  • 3
  • 10
  • Here you can see how to create a listener on keyboard : https://stackoverflow.com/questions/25216749/soft-keyboard-open-and-close-listener-in-an-activity-in-android – Bita Mirshafiee Jun 28 '20 at 17:01

1 Answers1

0

I dont know of a listener doing exactly this. But you can archiv something like that by listening for Input of the search confirmation and additionally listen to the onBackPress Event of your context / activity. For checking the search event Look Here: how to listen to keyboard search button in searchView

Hatzen
  • 314
  • 5
  • 14