-
Notifications
You must be signed in to change notification settings - Fork 971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RxTextView.textChangesWithBefore #137
Comments
Can you show an example of how you would use it? On Sun, Sep 13, 2015, 7:27 PM Justin Hall notifications@github.com wrote:
|
I was thinking something like: RxTextView.textChangesWithBefore(textView)
.filter(this::compareBeforeAndAfter)
.subscribe(beforeAndAfterPair -> {
// ...
}); Just imagining |
Got it. Will look into adding. On Sun, Sep 13, 2015, 9:05 PM Justin Hall notifications@github.com wrote:
|
Cool, thanks for considering it. |
@wKovacs64 Both before and after text change event bindings are added in #145. |
New to RxJava and RxBinding, I started out by doing some user input validation previously implemented via
TextWatcher
. I realized while attempting to leverage thefilter
operator that the Observable returned fromRxTextView.textChanges
only emits the new text. Would it be beneficial to add a similar Observable that also emitted the before value (fromTextWatcher#beforeTextChanged
)?The text was updated successfully, but these errors were encountered: