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

Usage of RxFloatingActionButton

In trying to adapt some standard Android programming to RxBinding I'm stuck on RxFloatingActionButton. The class has one method, visibility(view), which returns a Consumer. Yet the Javadoc says "The created observable keeps a strong…
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43
0
votes
1 answer

How to send Spinner item value to multiple subscibers using Rxbinding

Android : What I've implemented till now is, get spinner value to the immediate subscriber using itemSelection(). Code : Observavle observavle = RxAdapterView.itemSelections(spinner); …
0
votes
1 answer

synchronise two views with RxBinding

I use RxJava's throttleFirst for one second to avoid rapid button clicks, however I also want that on a button click a second button be also disabled for a second and vice versa, So, in short I do not allow rapid clicks on those two buttons one…
Ana Koridze
  • 1,532
  • 2
  • 18
  • 28
0
votes
0 answers

rxbinding, seekbar, only one value emit

With code as follows: RxSeekBar.userChanges(seekbar) .observeOn(AndroidSchedulers.mainThread()) .subscribe({ Log.v(LOG_TAG, "last value: $it") }) I am trying to…
kolboc
  • 805
  • 1
  • 8
  • 22
0
votes
1 answer

Confusion with form validation using Kotlin and rx-java combineLatest

So I wanted to use rx-java2 for form validation. I'm using Kotlin. I encountered two problems. Both emailObservable and passwordObservable are of type Disposable!. I tried to specify type by calling val emailObservable: Observable but…
dawzaw
  • 419
  • 6
  • 17
0
votes
2 answers

unexpected behaviour of debounce() operator in RxJava

I am using RxBinding to validate form inputs. the problem is when I try to use the debounce() operator as below the app misbehaves, it does not crash but the app restarts just after I open the activity that calls setupForm() without showing any sign…
Bishoy Kamel
  • 2,327
  • 2
  • 17
  • 29
0
votes
1 answer

Handling multiple button clicks with Reactive bindings on Android

I need to handle multiple button click within short period of time in a way such that I need to get number of click that the user clicked within 500ms to reduce the number of API calls I make to the backend. val buttonStream =…
kokilayaa
  • 579
  • 4
  • 7
  • 19
0
votes
1 answer

How to use LiveData with RxSearchView?

I am trying to combine LiveData with RxBinding library, I want to use RxSearchView and use switchMap in order to subscribe to the latest observable. I am not sure if my implementation is good. I'll show you my code, please could you tell me if there…
Deep
  • 189
  • 3
0
votes
2 answers

RxJava take only one event until completed

I have a login screen with an Observable which emits items when email and password are valid, and then, I subscribe enabling or disabling the login button. Now, I want a way to avoid multiple clicks in the login button (avoiding multiple calls to…
reinaldomoreira
  • 5,388
  • 3
  • 14
  • 29
0
votes
1 answer

RxSearchView after cleaning with backspace

I have RxSearchView: RxSearchView.queryTextChanges(searchView) .filter(charSequence -> !TextUtils.isEmpty(charSequence)) .debounce(600, TimeUnit.MILLISECONDS) .observeOn(AndroidSchedulers.mainThread()) …
VLeonovs
  • 2,193
  • 5
  • 24
  • 44
0
votes
1 answer

RxJava Observable to generate repeated events when button is down

I'm trying to write an observable that would generate repeated events while the user holds down a view. My code below works well, but only the first time (e.g. if the user presses the button again, nothing happens). Can you please advise what am I…
Alexandru Cristescu
  • 3,898
  • 3
  • 19
  • 22
0
votes
2 answers

EditText validation on ViewModel using RxJava2

I'm trying to use RxJava to perform a validation on a EditText when I click a button but I'm having a hard time moving the validation to the ViewModel which would make testing much easier. I'm using RxBindings from Jake Wharton to get the UI input…
davisjp
  • 730
  • 1
  • 11
  • 24
0
votes
1 answer

RxJava Thread switching

RxBottomNavigationView.itemSelections(sections).map(menuItem -> menuItem.getTitle().toString()) .observeOn(AndroidSchedulers.mainThread()).map(this::insertCategoryHeadersForSection) …
Zeyad Gasser
  • 1,516
  • 21
  • 39
0
votes
1 answer

How to use rxjava2 with MultiAutoCompleteTextView?

I checked support of Rxbinding for MultiAutoCompleteTextView. But haven't seen any option.
0
votes
1 answer

rxBindings - How to know what consumer type should be when debouncing click events?

using rxBindings im trying to slow down a click event but i would like to know what the parameter is need. For example, here is a call i am doing on a imageview. So ImageView v; RxView.clicks(v) .throttleFirst(400,…
j2emanue
  • 60,549
  • 65
  • 286
  • 456