Last active
May 19, 2021 07:13
-
-
Save JoseAlcerreca/0f8dbc0e2852c92f38d7e4862520ecd5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Expose resource IDs instead | |
public class MyViewModel extends ViewModel { | |
public final MutableLiveData<Int> statusLabel = new MutableLiveData<>(); | |
public SampleViewModel() { | |
... | |
statusLabel.setValue(R.string.labelString); | |
} | |
} |
What is SampleViewModel? Is that the constructor for MyViewModel class ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why is the constructor not matching the Class name?