Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Created September 27, 2017 15:09
Show Gist options
  • Save husaynhakeem/fdc8999e968282c3503b6d9d23b1393d to your computer and use it in GitHub Desktop.
Save husaynhakeem/fdc8999e968282c3503b6d9d23b1393d to your computer and use it in GitHub Desktop.
MainViewModel viewModel = ViewModelProviders.of(this).get(MainViewModel.class);
final PokemonAdapter adapter = new PokemonAdapter();
viewModel.pokemonList.observe(this, adapter::setList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment