Skip to content

Instantly share code, notes, and snippets.

@Marchuck
Created June 14, 2018 11:44
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 Marchuck/96943761d58eb826e2c08a61d1206d18 to your computer and use it in GitHub Desktop.
Save Marchuck/96943761d58eb826e2c08a61d1206d18 to your computer and use it in GitHub Desktop.
@BindingAdapter("android:adapterSetup")
fun setupRecyclerViewAdapter(view: RecyclerView, viewModel: PaginationViewModel) {
view.layoutManager = LinearLayoutManager(view.context)
view.adapter = viewModel.adapter
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment