Skip to content

Instantly share code, notes, and snippets.

@rahulsainani
Last active May 12, 2021 10:35
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 rahulsainani/ddc8d21dec0db162714af3c247b6257b to your computer and use it in GitHub Desktop.
Save rahulsainani/ddc8d21dec0db162714af3c247b6257b to your computer and use it in GitHub Desktop.
private fun setupFeatureTiles(featuresList: List<Features>) {
with(recyclerFeatures) {
layoutManager = LinearLayoutManager(context, RecyclerView.HORIZONTAL, false)
adapter = featuresAdapter
}
featuresAdapter.submitList(featuresList)
lifecycleScope.launch { autoScrollFeaturesList() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment