Esempio n. 1
0
 public override void convert(ViewHolder holder, T item)
 {
     holder.SetText(Resource.Id.tv_keyword, item.ToString());
     holder.GetView <ImageButton>(Resource.Id.imgbtn_delete).Click += (s, e) =>
     {
         ActionDelte(item.ToString());
     };
 }
Esempio n. 2
0
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            var        item       = mData[position];
            ViewHolder viewHolder = ViewHolder.Get(mContext, convertView, parent, mItemLayoutId, position);

            convert(viewHolder, mData[position]);

            System.Diagnostics.Debug.Write("getView", position + "" + mData[position]);
            return(viewHolder.GetConvertView());
        }
Esempio n. 3
0
 public static ViewHolder Get(Context context, View convertView, ViewGroup parent, int itemLayoutId, int position)
 {
     if (convertView == null)
     {
         return(new ViewHolder(context, parent, itemLayoutId, position));
     }
     else
     {
         ViewHolder holder = (ViewHolder)convertView.Tag;
         holder.mPosition = position;
         return(holder);
     }
 }
Esempio n. 4
0
 public abstract void convert(ViewHolder helper, T item);