protected BaseViewHolder(ViewGroup parent, int res)
     : base(LayoutInflater.From(parent.Context).Inflate(res, parent, false))
 {
     Holder       = this;
     _convertView = ItemView;
     _layoutId    = res;
     _context     = _convertView.Context;
 }
 protected BaseViewHolder(View itemView) : base(itemView)
 {
     Holder       = this;
     _convertView = itemView;
     _context     = _convertView.Context;
 }
Beispiel #3
0
 public void OnBindViewHolder(BaseViewHolder <T> holder, int position)
 {
     holder.SetData(GetItem(position));
 }