Skip to content

Instantly share code, notes, and snippets.

Avatar

Shahroz Khan Shahroz16

View GitHub Profile
@Shahroz16
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>,
You can’t perform that action at this time.