Skip to content

Instantly share code, notes, and snippets.

@adityaladwa
Created January 8, 2017 11:58
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 adityaladwa/88e58892165428e6272ea0f9bfb5803c to your computer and use it in GitHub Desktop.
Save adityaladwa/88e58892165428e6272ea0f9bfb5803c to your computer and use it in GitHub Desktop.
public class User extends BaseObservable {
private boolean clicked;
@Bindable public boolean isClicked() {
return clicked;
}
public void setClicked(boolean clicked) {
this.clicked = !clicked;
notifyPropertyChanged(BR.clicked);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment