public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.home_recycler, parent, false); HomeViewHolder vh = new HomeViewHolder(itemView, Onclick); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { HomeViewHolder vh = holder as HomeViewHolder; vh.notificationCaption.Text = mHome[position].notificationCaption; vh.notificationTime.Text = mHome[position].notificationTime; vh.notificationIcon.SetImageResource(mHome[position].notificationIcon); }