Last active
August 3, 2018 12:59
-
-
Save kozmi55/ecacbc577e50846c96447b56fcd821ed 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, data: T) { | |
if (recyclerView.adapter is BindableAdapter<*>) { | |
(recyclerView.adapter as BindableAdapter<T>).setData(data) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment