JakeWharton / RxBinding

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

RxBinding EditorAction #385

Open santwanav opened 7 years ago

santwanav commented 7 years ago

What is the right way to implement onEditorActionListener in RxBinding2 ? I am facing some difficulty understanding from the source code about the type of argument given to the editorActionEvents

Harsh-Jagad commented 6 years ago

I would also like to know how to do this...

akaita commented 5 years ago

This is my take on this:


RxTextView.editorActions(password)
    .filter { it in arrayOf(EditorInfo.IME_ACTION_DONE, it == EditorInfo.IME_NULL) })

And then continue the stream with debounce, filter, etc