Questions tagged [rx-binding]

RxJava binding APIs for Android UI widgets from the platform and support libraries by Jake Wharton

RxJava binding APIs for Android UI widgets from the platform and support libraries by Jake Wharton

101 questions
1
vote
0 answers

multiple checkboxes get/set status to use RxBinding

I have 5 checkboxes, and use RxBinding to check all checkboxes status. expected logic (var name starts with 'cb' is Checkboxes, starts with 'btn' is Button) If check/uncheck cbAgreeAll, then cbOption1~cbOption4 set the same status with…
1
vote
1 answer

OnBackPressed doesn't work when observe EditText KEys

I have Extension of EditText where I'm listenig to events from keyboard of EditText. I need to know when user press any button for showing (or not showing) error. So I make Observable for keys (rxbinding2) and I'm getting any press but when I press…
ivanovd422
  • 357
  • 5
  • 18
1
vote
1 answer

RxTextView in Kotlin cannot extract String from KFunction1

In Java I use RxTextView and call .subscribe() in Fragment to invoke and transmit String as a parameter to a method in Presenter. Everything works fine. Java: compositeDisposable.add( RxTextView.textChanges(searchEditText) …
gryzek
  • 537
  • 9
  • 25
1
vote
2 answers

RxView.clicks() dies after onError event

Here is a sample Rx chain using RxBindings: RxView.clicks(refreshIcon) .flatMap { Observable.error(IllegalArgumentException()) } .subscribe( { Timber.d("onNext")}, { error ->…
Vas
  • 2,014
  • 3
  • 22
  • 38
1
vote
1 answer

RxBinding: different debounced observables within one rx-sequence for RxSearchView?

I'm using RxBinding2 to listen for text changes in SearchView. I need to use separate logic with different debounce when user types smth in EditText. I tried this: RxSearchView.queryTextChanges(searchView) .debounce(500,…
Andrey Aleev
  • 192
  • 1
  • 1
  • 13
1
vote
1 answer

Filter Observable with text from an EditText using RxBinding

I have an array of Objects and I want to filter that array based on the text user types on an EditText android view. What I thought it that I should try and convert the array of POJOs to an Observable of Strings and this is what I did : …
Mes
  • 1,671
  • 3
  • 20
  • 36
1
vote
3 answers

RxBinding TextChanges won't continue emitting text changes

Trying to figure out why RxTextView.textChanges only emits the initial value. My understanding is that it should emit all new text changes to downstream subscriptions. Here is the code public class SignupFragment extends Fragment { …
Evan Anger
  • 712
  • 1
  • 5
  • 24
1
vote
1 answer

Why does only the latest Subscriber get onNext Event in RxJava on Android using Kotlin and RxMVP

Given following scenario: A View featuring a CheckBox and multiple EditTexts The View offers access to the Observables using Jake Wharton's RxBinding like so fun observeUsername(): InitialValueObservable =…
grAPPfruit
  • 2,041
  • 3
  • 20
  • 29
1
vote
1 answer

What is the idiomatic way of refreshing using RxBinding on a SwipeRefreshLayout

I'm struggling to understand how to properly use RxBinding, if I want to call a network request when a user swipes down on a SwipeRefreshLayout, I would expect to say something like RxSwipeRefreshLayout.refreshes(swipeContainer) …
nmu
  • 1,442
  • 2
  • 20
  • 40
1
vote
1 answer

RxCompoundButton is emitting default value

I've a problem with RxCompoundButton, as soon as i subscribe to it, it will emit a default value, and it's not what i want. Is this behaviour expected ? RxCompoundButton.checkedChanges(btOneWayFlag) .debounce(0, TimeUnit.MILLISECONDS,…
1
vote
1 answer

Create a uniform Action1 to perform checks on fields

I was trying to get familiar with RxBinding and how it could be applied on simple forms. I was wondering if there is way to create one Action1 that performs the checks and updates the model. If I am not clear enough I hope the code below will help…
Naoum Mandrelas
  • 258
  • 3
  • 20
1
vote
1 answer

RxView clicks and onError

Using RxView to handle the clicks I have to implement the onError. I understand that the onError is always there in observers but is there a case when the RxView.clicks(myview) will actually call onError? …
1048576
  • 615
  • 9
  • 27
1
vote
1 answer

Merge All UI Events to one Observable, but i only receive the last merged event

I am trying to merge all UI events in one Observable, so i can react to all events, such as: onCreate life cycle, scroll Events from my RecyclerView, searchEvents from search view and deleteEvents from Action mode activation. I am using Rxbinding to…
Zeyad Gasser
  • 1,516
  • 21
  • 39
1
vote
1 answer

RxJava: Continue next iteration even if error occurs

I'm using RxSearchView to emit out the results of a search query from an API to a recyclerview. However, if one of those query fails, onError() is called(which is expected) but the subscription as a whole is also canceled. Subsequent queries are not…
div
  • 1,475
  • 3
  • 22
  • 32
1
vote
1 answer

Convert CharSequence to Float

I am trying to convert the item emitted from an observer to another type. I tried the map function with no success. mObservable = RxTextView.textChanges(mEditText).map(a -> Float.parseFloat(a.toString())); Using as above I get this compiler…
thyago stall
  • 1,654
  • 3
  • 16
  • 30