Created
June 10, 2020 16:15
-
-
Save maskaravivek/73a8335f1b51c454f122fae39c20ad36 to your computer and use it in GitHub Desktop.
This file contains 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
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