Created
August 3, 2018 12:01
-
-
Save kozmi55/ab8d65a11bbea637199d80bed44ef8ce 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
@BindingAdapter("data") | |
fun <T> setRecyclerViewProperties(recyclerView: RecyclerView, items: List<Long>) { | |
if (recyclerView.adapter is UserAdapter) { | |
(recyclerView.adapter as UserAdapter).setData(items) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment