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); }
/// <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); }
public virtual void AddFootView(Android.Views.View view) { mFootViews.Put(mFootViews.Size() + BaseItemTypeFooter, view); }
public virtual void AddHeaderView(Android.Views.View view) { mHeaderViews.Put(mHeaderViews.Size() + BaseItemTypeHeader, view); }