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
26
votes
2 answers

Observable.combineLatest type inference in kotlin

I'm using RxJava2, Kotlin-1.1 along with RxBindings in my project. I have simple login screen with 'login' button disabled by default, I want to enable the button only when username and password edittext fields are not…
blizzard
  • 5,275
  • 2
  • 34
  • 48
17
votes
2 answers

Updating fragment from Activity Using Rxjava Android

I have a simple use case where: Activity1 create a fragment1 fragment1 after creation notify to activity that it is created and update its activity1 views. activity1 after getting notification update fragment1 views. I am using rxandroid ,…
13
votes
1 answer

RxBindings For Spinner?

i am new android and rxjava. i have been through many examples where we listen for events with rxbindings. such as this RxView.clicks(b).subscribe(new Action1() { @Override public void call(Void aVoid)…
arshid dar
  • 1,355
  • 2
  • 15
  • 23
13
votes
4 answers

Should I unsubscribe when using rxbinding?

There is how I use RxBinding with Kotlin: override fun onViewCreated(view: View?, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) reset_password_text_view.clicks().subscribe {…
Alexandr
  • 3,859
  • 5
  • 32
  • 56
12
votes
1 answer

RxTextView and other widgets not found while using latest com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha2 library

I wanna use RxJava binding APIs for Android UI widgets in my project. Therefore following the guidance as per this site 'https://github.com/JakeWharton/RxBinding' But I am unable to import any Android UI widgets in my Kotlin File. Where as its…
A.R.
  • 2,631
  • 1
  • 19
  • 22
12
votes
4 answers

How to implement Periodic processing of user input?

My current Android application allows users to search for content remotely. e.g. The user is presented with an EditText which accepts their search strings and triggers a remote API call that returns results that match the entered text. Worse case is…
Hector
  • 4,016
  • 21
  • 112
  • 211
11
votes
2 answers

How to implement search feature with SearchView, Retrofit and RxJava (RxBindings)?

When the user types into the SearchView widget, the app should make an API call (in background thread) to fetch search results from server, and display them (in UI thread) in RecyclerView. I use the following code in my fragment: @Override public…
Max
  • 1,534
  • 1
  • 18
  • 24
6
votes
1 answer

Error:com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$HierarchyChangeListener

I have tried with these solutions - Solution 1 , Solution 2 Here are my gradle dependencies. dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //noinspection GradleCompatible implementation…
5
votes
1 answer

Handle all types of Retrofit errors properly with rxjava

I'm new to Rxjava with Retrofit and I'm asking for the best right way to handle all possible status in Retrofit using rxjava and rxbinding which includes: No Internet connection. Null response from server. Success response. Error response and show…
alihabbash95
  • 125
  • 6
5
votes
1 answer

RxBinding Documentation

RxBinding does not have its own documentation. The commands may be easy for professional developers but not for beginners. Does anyone have a self-documented documentation or a link that has ample resources ?
SantaClara
  • 86
  • 1
  • 9
5
votes
2 answers

RxJava and MVP in Android app

I am trying to implement a screen in Android app using MVP architecture and using RxJava and RxBinding on the View side. Basically I have 2 Spinners, 1 TextEdit and a button that's disabled by default. I want to enable the button when Spinners have…
Anton Tananaev
  • 2,458
  • 1
  • 25
  • 48
4
votes
1 answer

Has rx Function Action1 been deprecated?

I have a use case within my Android application where I wish to allow the user to enter a "certain amount" of text to search on before starting a search. As the user types additional text I would like to initiate further searches using the complete…
Hector
  • 4,016
  • 21
  • 112
  • 211
4
votes
1 answer

How to call a non-rx network call that depends on an rx network call

I have a network call that returns an Observable, and I have another network call that it is not rx that depends on the first Observable and I need to somehow convert it all with Rx. Observable responseObservable =…
Kenenisa Bekele
  • 835
  • 13
  • 34
4
votes
2 answers

How to avoid observable stopping after onError

After onError, my observable stops working. How can I avoid that? Here is my autocomplete observable and subscription code: public void subscribeAutoComplete() { autoSubscription = RxTextView.textChangeEvents(clearableEditText) …
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
4
votes
1 answer

Get current value of RxJava Observable

In my UI I have a RadioGroup with 3 RadioButtons and a "normal" Button. When the user clicks on the Button I want to read the selected RadioButton to do something with it. RxView.clicks(button) .flatMap(x ->…
Ralph Bergmann
  • 3,015
  • 4
  • 30
  • 61
1
2 3 4 5 6 7