Created
December 27, 2018 10:15
-
-
Save AdiD253/25fe83bf27d091063ba9a38185061877 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
class SampleAdapter : RecyclerView.Adapter<SampleViewHolder>() { | |
private var itemList: List<SampleItem> by autoNotifyDelegate(adapter = this, initialValue = listOf()) | |
fun setItems(itemList: List<SampleItem>) { | |
this.itemList = itemList | |
} | |
(...) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment