https://stackoverflow.com/questions/41788166/create-an-observable-from-an-edit-text We can use RxBinding. This example could help you. https://github.com/JakeWharton/RxBinding //Validate username field Observable<Boolean> usernameObservable = RxTextView.textChanges(usernameEditText) .map(username -> StringUtils.isNotBlank(username) && Validators.validateUsername(username.toString())).skip(1); //Validate password field Observable<CharSequence> passwordObservable = RxTextView.textChanges(passwordEditText).skip(1); //Validate confirm password field Observable<CharSequence> confirmPasswordObservable = RxTextView.textChanges(confirmPasswordEditText) .skip(1); //Validate password READ MORE
Month: July 2018
Single and Completable in RxJava
https://android.jlelse.eu/making-your-rxjava-intentions-clearer-with-single-and-completable-f064d98d53a8 Clearer RxJava intentions with Single and Completable In almost all RxJava example code and tutorials there is one class that reigns supreme — the Observable. It is the object which makes the whole magic of reactive programming possible. It’s simple READ MORE
CompositeDisposable
A disposable container that can hold onto multiple other disposables and offers O(1) add and removal complexity. http://reactivex.io/RxJava/javadoc/io/reactivex/disposables/CompositeDisposable.html In this lesson you will learn how CompositeDisposable simplifies dealing with multiple Disposables. https://caster.io/lessons/rxjava-2-compositedisposable https://github.com/shadowmanpat/RxJava2Caster.io // adding an Observable to READ MORE