Skip to content

Instantly share code, notes, and snippets.


Shahroz Khan Shahroz16

View GitHub Profile
Shahroz16 / RecyclerViewArrayAdapter.kt
Created Sep 28, 2019
ArrayAdapter for Recycler View
View RecyclerViewArrayAdapter.kt
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.annotation.IdRes
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.RecyclerView
class RecyclerViewArrayAdapter<T>(@LayoutRes var resource: Int,
var objects: List<T>,