Skip to content

Instantly share code, notes, and snippets.

@maskaravivek
Created June 10, 2020 16:15
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 maskaravivek/73a8335f1b51c454f122fae39c20ad36 to your computer and use it in GitHub Desktop.
Save maskaravivek/73a8335f1b51c454f122fae39c20ad36 to your computer and use it in GitHub Desktop.
private fun initRecyclerView() {
val layoutManager = LinearLayoutManager(this)
userRecyclerView.setLayoutManager(layoutManager)
userList!!.observe(this, Observer { pagedList ->
adapter.submitList(pagedList)
})
userRecyclerView.setAdapter(adapter)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment