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
3
votes
1 answer

How to process distinct values using RxBinding RxTextView.textChangeEvents

I am using RxBinding in my current Android application and wish to implement a text search feature. My code is as follows:- compositeDisposable.add(RxTextView.textChangeEvents(searchEditText) .skipInitialValue() …
Hector
  • 4,016
  • 21
  • 112
  • 211
3
votes
1 answer

RxJava not calling neither onSuccess nor onError, app freezing

When I turned off Internet and swipe to refresh on first time, everything works ok (refreshing disabling, and showing NetworkErrorView), but when I swipe to refresh on second time, refreshing status freezing, and as I understand in SingleObserver…
Mike
  • 79
  • 2
  • 9
3
votes
0 answers

RxBinding for MapView (Google Map)?

are there any updated rx binding for MapView (Google Map)? I found this library, but its last commit is around 1 year ago and it's still using google play services map 9.6.0
3
votes
1 answer

RxJava2 subscribe is not called when mapping observable to completable

I have a click event which needs to make a network request. RxView.clicks(button) .flatMapCompletable({ x -> networkCall() }) .subscribe(...) The click is an Observable. networkCall returns a Completable. However the block inside subscribe…
SunnySydeUp
  • 6,680
  • 4
  • 28
  • 32
3
votes
0 answers

Using RxBiding inside a custom view

What's the best practice when you want to emit an Observable with RxView.clicks(mCustomView), but a custom action is also needed inside the View itself? Multiple subscribers? One being in charge with the custom action inside the View? Or, perhaps…
Adi B
  • 819
  • 1
  • 8
  • 11
3
votes
1 answer

AutoCompleteTextView with Retrofit 2, RxJava and RxBinding

I am new to Rx world and try to implement my AutoCompleteTextView with RxJava, RxBinding and Retrofit 2. Here's what I come up with which is troublesome: (Maybe I'm not doing it in the right way.) I have an AutoCompleteTextView and here I created my…
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
3
votes
1 answer

RxJava/RxBinding - check if subscription exists

I'm using RxBinding and creating a subscription in RecyclerView adapter in onBindViewHolder method, which reuses items. Is there any simple way to check if I already assigned subscriber to an EditText object and if so delete that subscription? My…
M Tomczynski
  • 15,099
  • 1
  • 15
  • 25
2
votes
1 answer

Understanding CompositeDisposable in RxJava + Kotlin

I am using RxJava for form validation for validating username and password. My use-case is pretty simple if both the fields satisfy respective condition then enable the login button else to disable it. following is my code. lateinit var…
r4jiv007
  • 2,974
  • 3
  • 29
  • 36
2
votes
1 answer

Rxjava, combineLatest with RxTextView memory leak

I'm trying to use combineLatest with several RxTextViews and I thought that I was disposing my Disposables properly but it looks like I'm still getting a memory leak. val one = RxTextView.afterTextChangeEvents(one) val two =…
alisonthemonster
  • 1,095
  • 1
  • 11
  • 28
2
votes
1 answer

How to switchMap after press button RxJava2

I study switchMap. The case is: 1) User press button 1 2) View calls Presenter method getRecord (id), and send button id. 3) Presenter subsribe on observable and emit data 4) User press button 2 5) Presenter unSubscribe of current subscriprion and…
Masquitos
  • 554
  • 4
  • 22
2
votes
2 answers

RxView.clicks crashes app

Trying to do some basic RxJava stuff to lear how it works and was trying to show a progress on button click in a login form (with the RxBindings lib) and then make it disappear after a second. But after the progress is shown and I want to hide it…
Bootstrapper
  • 1,089
  • 3
  • 14
  • 33
2
votes
1 answer

NPE when subscribing to dialog button clicks

I have created a custom dialog in my app, and I want to add button click observables like so: public class BasicDialog extends android.app.Dialog { @BindView(R.id.button1) TextView button1; @BindView(R.id.button2) TextView…
DCoutts
  • 124
  • 2
  • 7
2
votes
1 answer

RecyclerView item click using RxJava2 + RxBinding not working after Fragment replacements

I have a RecyclerView in Fragment, item clicks are handled using RxJava2 as explained in this SO answer, It's working fine in non fragments. private PublishSubject itemViewClickSubject = PublishSubject.create(); @Override public…
2
votes
1 answer

Rxjava2 view clicks in recycler adapter

I'm using rxbindings snapshot version compatible with rxjava2 and everything works perfectly, but i don't know how to handle click events inside recyclerView adapter. I tried to use "rxjava 1 way" but it doesn't work. RxJava 1.0: class…
mayosk
  • 603
  • 3
  • 14
2
votes
1 answer

Binding an RxJava Observable to a TextView's text property

Is there a way, perhaps using RxBinding, to bind an Observable to a TextView object such that its .text property is kept up to date with the Observable? Obviously, you could subscribe() and manually update the text field, but a convenience…
RamwiseMatt
  • 2,717
  • 3
  • 16
  • 22