示例#1
0
 public static Com.Zhy.Adapter.Abslistview.ViewHolder Get(Android.Content.Context
                                                          context, Android.Views.View convertView, Android.Views.ViewGroup parent, int layoutId
                                                          , int position)
 {
     if (convertView == null)
     {
         Android.Views.View itemView = Android.Views.LayoutInflater.From(context).Inflate(
             layoutId, parent, false);
         Com.Zhy.Adapter.Abslistview.ViewHolder holder = new Com.Zhy.Adapter.Abslistview.ViewHolder
                                                             (context, itemView, parent, position);
         holder.mLayoutId = layoutId;
         return(holder);
     }
     else
     {
         ViewHolder holder = ((Jbox <ViewHolder>)convertView.Tag).Value;
         holder.mPosition = position;
         return(holder);
     }
 }
 public virtual void OnViewHolderCreated(ViewHolder holder
                                         , Android.Views.View itemView)
 {
 }
 protected internal virtual void Convert(ViewHolder viewHolder
                                         , T item, int position)
 {
     mItemViewDelegateManager.Convert(viewHolder, item, position);
 }