Example #1
0
    /// <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)
    {
        foreach (var prefix in GetClassPrefixes())
        {
            try
            {
                return(LayoutInflater.CreateView(name, prefix, attrs));
            }
            catch
            {
                // Ignore.
            }
        }

        return(LayoutInflater.BaseOnCreateView(name, 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.BaseOnCreateView(parent, name, attrs));
 }