Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created May 22, 2020 13:04
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 PatilShreyas/311937d492591a8e0c0177ea610818d2 to your computer and use it in GitHub Desktop.
Save PatilShreyas/311937d492591a8e0c0177ea610818d2 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private val viewModel by lazy {
ViewModelProvider(this)[MainViewModel::class.java]
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
initCountObserver()
initView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment