Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
inline fun <reified T: View> T.asRecyclerViewCell(): T {
layoutParams = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT)
return this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment