public virtual void setFilter(android.view.LayoutInflater.Filter arg0) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) { @__env.CallVoidMethod(this.JvmHandle, global::android.view.LayoutInflater._setFilter8855, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); } else { @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.view.LayoutInflater.staticClass, global::android.view.LayoutInflater._setFilter8855, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); } }
/// <summary> /// Sets the /// <see cref="Filter">Filter</see> /// to by this LayoutInflater. If a view is attempted to be inflated /// which is not allowed by the /// <see cref="Filter">Filter</see> /// , the /// <see cref="inflate(int, ViewGroup)">inflate(int, ViewGroup)</see> /// call will /// throw an /// <see cref="InflateException">InflateException</see> /// . This filter will replace any previous filter set on this /// LayoutInflater. /// </summary> /// <param name="filter"> /// The Filter which restricts the set of Views that are allowed to be inflated. /// This filter will replace any previous filter set on this LayoutInflater. /// </param> public virtual void setFilter(android.view.LayoutInflater.Filter filter) { mFilter = filter; if (filter != null) { mFilterMap = new java.util.HashMap<string, bool>(); } }
/// <summary> /// Create a new LayoutInflater instance that is a copy of an existing /// LayoutInflater, optionally with its Context changed. /// </summary> /// <remarks> /// Create a new LayoutInflater instance that is a copy of an existing /// LayoutInflater, optionally with its Context changed. For use in /// implementing /// <see cref="cloneInContext(android.content.Context)">cloneInContext(android.content.Context) /// </see> /// . /// </remarks> /// <param name="original">The original LayoutInflater to copy.</param> /// <param name="newContext">The new Context to use.</param> protected internal LayoutInflater(android.view.LayoutInflater original, android.content.Context newContext) { mContext = newContext; mFactory = original.mFactory; mFactory2 = original.mFactory2; mPrivateFactory = original.mPrivateFactory; mFilter = original.mFilter; }