<What context should I pass to the AdapterItem fro...
# stackoverflow
u
What context should I pass to the AdapterItem from InformationFragment? AdapterItem class AdapterItem(val context: Context, val userList: List): RecyclerView.Adapter() { class ViewHolder(itemView:View):RecyclerView.ViewHolder(itemView){ var numeLista: TextView var caloriiLista: TextView init{ numeLista=itemView.numeLista caloriiLista=itemView.caloriiLista } } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { var itemView = LayoutInflater.from(context).inflate(R.layout.row_items, parent, false) return...