Last active
October 17, 2016 20:54
-
-
Save v3n3/10b94058df42a2a5aac185f7bf02b080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TwoWayViewModel extends BaseObservable { | |
private String username; | |
@Bindable | |
public String getUsername() { | |
return username; | |
} | |
public void setUsername(String username) { | |
this.username = username; | |
notifyPropertyChanged(BR.username); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment