public View OnCreateView(View parent, string name, Context context, IAttributeSet attrs) { View view = null; string clazz = null; if (_factory2 != null) { view = _factory2.OnCreateView(parent, name, context, attrs); if (view == null && name.IndexOf('.') < 0) { clazz = GetClassName(name); if (clazz != null) { view = _factory2.OnCreateView(parent, clazz, context, attrs); } } } if (view == null && _privateFactory != null) { view = _privateFactory.OnCreateView(parent, name, context, attrs); if (view == null && clazz != null) { view = _privateFactory.OnCreateView(clazz, context, attrs); } } return(OnViewCreated(view, name, context, attrs)); }
/// <summary> /// Creates a view. /// </summary> /// <param name="parent">The view's parent, if any.</param> /// <param name="name">The fully qualified name of the view being inflated.</param> /// <param name="context">The context that the view will be inflated in.</param> /// <param name="attrs">The attributes to apply to the view.</param> public View OnCreateView(View parent, string name, Context context, IAttributeSet attrs) { return(_factory2.OnCreateView(parent, name, context, attrs)); }
/// <summary> /// Creates a view. /// </summary> /// <param name="parent">The view's parent, if any.</param> /// <param name="name">The fully qualified name of the view being inflated.</param> /// <param name="context">The context that the view will be inflated in.</param> /// <param name="attrs">The attributes to apply to the view.</param> public override View OnCreateView(View parent, string name, Context context, IAttributeSet attrs) { return(LayoutInflater.InflateCustomView(parent, _factory2.OnCreateView(parent, name, context, attrs), name, context, attrs)); }