Skip to content

Instantly share code, notes, and snippets.

@minibugdev
Last active July 19, 2019 05:30
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 minibugdev/ca4e230ea6e5840e01dc98e604b15deb to your computer and use it in GitHub Desktop.
Save minibugdev/ca4e230ea6e5840e01dc98e604b15deb to your computer and use it in GitHub Desktop.
val controller = MyController().apply{
banners = getBanners(),
productItems = getPromotionProducts()
}
recyclerView.layoutManager = LinearLayoutManager(this)
recyclerView.setHasFixedSize(false)
recyclerView.setController(controller)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment