/// <inheritdoc /> public View OnCreateView(string name, Context context, IAttributeSet attrs) { View view = null; if (context is LayoutInflater.IFactory) { view = ((LayoutInflater.IFactory)context).OnCreateView(name, context, attrs); } if (factory != null && view == null) { view = factory.OnCreateView(name, context, attrs); } if (view == null) { view = CreateViewOrFailQuietly(name, context, attrs); } if (view != null) { OnViewCreated(view, name, context, attrs); } return(view); }
public View OnCreateView(string name, Context context, IAttributeSet attrs) { if (_factory == null) { return(OnViewCreated(null, name, context, attrs)); } var v = _factory.OnCreateView(name, context, attrs); if (v == null && name.IndexOf('.') < 0) { var clazz = GetClassName(name); if (clazz != null) { v = _factory.OnCreateView(clazz, context, attrs); } } return(OnViewCreated(v, 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(_factory.OnCreateView(name, context, attrs)); }