public virtual Com.Zhy.Adapter.Recyclerview.Base.ItemViewDelegateManager <T> AddDelegate
            (Com.Zhy.Adapter.Recyclerview.Base.ItemViewDelegate <T> delegate_)
        {
            int viewType = delegates.Size();

            if (delegate_ != null)
            {
                delegates.Put(viewType, delegate_);
                viewType++;
            }
            return(this);
        }
示例#2
0
 /// <summary>通过viewId获取控件</summary>
 /// <param name="viewId"/>
 /// <returns/>
 public virtual T GetView <T>(int viewId)
     where T : Android.Views.View
 {
     Android.Views.View view = mViews.Get(viewId);
     if (view == null)
     {
         view = mConvertView.FindViewById(viewId);
         mViews.Put(viewId, view);
     }
     return((T)view);
 }
示例#3
0
 public virtual void AddFootView(Android.Views.View view)
 {
     mFootViews.Put(mFootViews.Size() + BaseItemTypeFooter, view);
 }
示例#4
0
 public virtual void AddHeaderView(Android.Views.View view)
 {
     mHeaderViews.Put(mHeaderViews.Size() + BaseItemTypeHeader, view);
 }