Skip to content

Instantly share code, notes, and snippets.

Last active Nov 25, 2017
What would you like to do?
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
//get reference to our model
val model = ViewModelProviders.of(this).get(
val users = model.getUsers()
//Use list of users to put in recycler view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment