Skip to content

Instantly share code, notes, and snippets.

@etkenkalem
Created June 18, 2021 23:01
Show Gist options
  • Select an option

  • Save etkenkalem/5e505a6b4358778cc18f79a7342e3f97 to your computer and use it in GitHub Desktop.

Select an option

Save etkenkalem/5e505a6b4358778cc18f79a7342e3f97 to your computer and use it in GitHub Desktop.
public class User extends BaseObservable {
private String userName="userName";
private String firstName="Oguz Ali";
private String lastName="CAN";
@Bindable
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
notifyPropertyChanged(BR.userName);
}
@Bindable
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
notifyPropertyChanged(BR.firstName);
}
@Bindable
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
notifyPropertyChanged(BR.lastName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment