recycler view android kotlin code example
Example: recyclerview adapter in kotlin
class CustomAdapter(private val dataSet: Array<String>) :
RecyclerView.Adapter<CustomAdapter.ViewHolder>() {
class ViewHolder(view: View) : RecyclerView.ViewHolder(view) {
}
override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): ViewHolder {
}
override fun onBindViewHolder(viewHolder: ViewHolder, position: Int) {
}
override fun getItemCount() {
}
}