public override global::Android.Support.V7.Widget.RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View view; global::Android.Support.V7.Widget.RecyclerView.ViewHolder viewHolder; if (_createViewHolderDelegate == null) { var result = _layoutInflater.InflateEx(viewType, parent, false); view = result.View; viewHolder = new ViewHolderImpl(result, viewType); } else { viewHolder = _createViewHolderDelegate(_layoutInflater, parent, viewType); view = viewHolder.ItemView; if (!(viewHolder is IViewHolder)) { view.SetDataContext(null); } } if (parent != null) { view.SetBindingMemberValue(AttachedMembersBase.Object.Parent, parent); } return(viewHolder); }
protected virtual View CreateView(object value, ViewGroup parent, int templateId, out LayoutInflaterResult inflaterResult) { inflaterResult = LayoutInflater.InflateEx(templateId, parent, false); inflaterResult.View.SetTag(Resource.Id.ListTemplateId, templateId); return(inflaterResult.View); }