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

combineLatest for first X of Y elements

My view has three fields, which together form an equation. What I want to achieve is as soon as the user fills in 2 out of 3 fields, I calculate the remaining one. What I have: mObservableEditTextA =…
thyago stall
  • 1,654
  • 3
  • 16
  • 30
1
vote
0 answers

Don't get updates on realm models work with RecyclerView/DataBinding

While implementing a solution based on Realm Mobile Database, RecyclerView and DataBinding I am stuck in receiving a change notification from an edittext view (within recyclerview) that is bound to a realm model. I tried it with RxBinding (my…
mischi
  • 25
  • 9
1
vote
1 answer

How to execute different retrofit requests inside RxJava's switchMap() operator?

I have a searchBar (an EditText) with four tabs below it (each tab should display different results). I'm using RxJava with RxBinding to listen and react to text changes events, and I'm using switchMap() operator to execute a Retrofit service for…
Mes
  • 1,671
  • 3
  • 20
  • 36
1
vote
1 answer

Button click listener stop working after RxAndroid onError

I am new with RxAndroid, I would like to understand why button clicks event stop working. I am using RxBinding and Retrofit 2 with Observables. Subscription loginButtonSubscription = RxView.clicks(loginBtn) …
0
votes
1 answer

Screen is not responding as I set a result to another edit text when using RxJava

I'm implement an TextInputEditText with RxBinding. Problem: When I do some math operation on first TextInputEditText and set the result to another TextInputEditText, The screen is not responding. When I start to type another digit, its not displayed…
dans
  • 17
  • 5
0
votes
3 answers

Limit UITextField to letters and spaces only

I added a UITextField and I want to restrict it to only alphabets and spaces. So with the following; let set = CharacterSet (charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLKMNOPQRSTUVWXYZ") How can I do this without using delegates if…
Mehmet Ceylan
  • 385
  • 1
  • 6
  • 18
0
votes
1 answer

RxBinding4 issue, unsure how to implement clicks on a floating action button

So I've upgraded to RxBinding4 and want to use the same process from RxBinding2 where i can click a fab button to save a task in a Todo List App the two ways which dont work are like this: private fun saveTaskIntent(): Observable { …
user8339148
0
votes
1 answer

Internet connection status monitoring through observables runs only once

I want to have application wide internet connection monitoring, for this purpose I'm using rxjava, I made a util class and got static method for connection state like this: val connectivityManager =…
blackHawk
  • 6,047
  • 13
  • 57
  • 100
0
votes
0 answers

RxBinding 'clicks()' method not triggering again when coming back from another activity

I am using 'RxJava binding APIs for Android UI widgets' to trigger click events on buttons or textview. PFB code(Edited) that using to trigger the event class BookAgentActivity : BaseActivity(), BookAgentView { @Inject …
A.R.
  • 2,631
  • 1
  • 19
  • 22
0
votes
1 answer

How to implement autocomplete with RxBinding, RxJava, and Retrofit

I'm new to RxJava, and there are a lot of examples and answers out there, but I'm having trouble piecing together something that addresses all of my concerns. The code below seems to be working except that I occasionally get results out of order. So…
John
  • 27
  • 1
  • 9
0
votes
1 answer

Convert Kotlin Unit to Java Void

I am using RxBinding for Android widgets. I would like to do the following: Observable obs = RxView.clicks(button); But I get a compile time error saying that the expected type is kotlin.Unit. RxView.clicks(button) returns an…
Shankha057
  • 1,296
  • 1
  • 20
  • 38
0
votes
1 answer

Throttle method call as we throttle View clicks with RxJava

Is there a way to throttle method calls i.e only take the first event within a certain window duration. I have seen examples of RxBinding like RxView.clicks(mButton) .throttleFirst(300, TimeUnit.MILLISECONDS,…
Veeresh Charantimath
  • 4,641
  • 5
  • 27
  • 36
0
votes
1 answer

How to identify Seekbar change events in Rx?

I want to identify Seekbar change events using Rx android. The catch is that I want to identify all the events inside a single observable and not multiple observable. Here is my code snippet which contains the progress change event. …
XylemRaj
  • 772
  • 4
  • 13
  • 28
0
votes
2 answers

RxBinding DatePicker and TimePicker

I'm trying to get the values from DatePicker, but I've no idea how could I manage it. My layout contains a DatePicker element, and I'm using kotlin. Same problem with TimePicker.
Péter Kovács
  • 184
  • 1
  • 1
  • 17
0
votes
1 answer

How do I collect form inputs, evaluate, and conditionally go to another view or post data using rxJava

I have a form with two inputs setup with rx-binding observables, and I have the validation working to enable/disable my submit. What I'm struggling to think through is form submittal. When the submit is clicked. I need to grab the latest values from…
John
  • 27
  • 1
  • 9