JakeWharton / RxBinding

RxJava binding APIs for Android's UI widgets.
Apache License 2.0
9.69k stars 971 forks source link

Implement onQueryTextSubmit(query: String) #541

Open hoangwy opened 4 years ago

hoangwy commented 4 years ago

Hi, Thank for great work

Can you implement this override fun onQueryTextSubmit(query: String) = false.

I want to capture Search button on the keyboard.

Thanks so much,

mickverm commented 4 years ago

Use the following:

searchView.queryTextChangeEvents()
    .subscribe { event: SearchViewQueryTextEvent ->
        if (event.isSubmitted) {

        }
    }