Skip to content

Instantly share code, notes, and snippets.

@Frederikos
Created March 27, 2019 11:16
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 Frederikos/ceb9a65af6fa8fb9d36d0004df2647f5 to your computer and use it in GitHub Desktop.
Save Frederikos/ceb9a65af6fa8fb9d36d0004df2647f5 to your computer and use it in GitHub Desktop.
public class TitleItemViewModel {
public final ObservableField<String> title = new ObservableField<>();
public TitleItemViewModel() {
title.set("Some title");
}
public void titleClicked(View view) {
title.set("Title clicked");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment