Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created June 12, 2019 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmaxxdd/f821312ff967ffef76e2d96b5c6e61b2 to your computer and use it in GitHub Desktop.
Save tmaxxdd/f821312ff967ffef76e2d96b5c6e61b2 to your computer and use it in GitHub Desktop.
import com.jakewharton.rxbinding.view.RxView;
...
Button button = (Button) findViewById(R.id.button);
RxView.clicks(button)
.subscribe(aVoid -> {
//Perform some work here//
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment