Created
August 18, 2017 16:38
-
-
Save joecks/8a4a8c3e3078523a77a968ae8e407bdd 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 TasksViewModel extends AndroidViewModel { | |
// These observable fields will update Views automatically | |
public final ObservableList<Task> items = new ObservableArrayList<>(); | |
public final ObservableBoolean dataLoading = new ObservableBoolean(false); | |
public final ObservableField<String> currentFilteringLabel = new ObservableField<>(); | |
public final ObservableField<String> noTasksLabel = new ObservableField<>(); | |
public final ObservableField<Drawable> noTaskIconRes = new ObservableField<>(); | |
public final ObservableBoolean empty = new ObservableBoolean(false); | |
public final ObservableBoolean tasksAddViewVisible = new ObservableBoolean(); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment