Example usage for Java android.view LayoutInflater fields, constructors, methods, implement or subclass
The text is from its open source code.
LayoutInflater | cloneInContext(Context newContext) Create a copy of the existing LayoutInflater object, with the copy pointing to a different Context than the original. |
View | createView(String name, String prefix, AttributeSet attrs) Low-level function for instantiating a view by name. |
LayoutInflater | from(Context context) Obtains the LayoutInflater from the given context. |
Context | getContext() Return the context we are running in, for access to resources, class loader, etc. |
Factory | getFactory() Return the current Factory (or null). |
View | inflate(@LayoutRes int resource, @Nullable ViewGroup root) Inflate a new view hierarchy from the specified xml resource. |
View | inflate(XmlPullParser parser, @Nullable ViewGroup root) Inflate a new view hierarchy from the specified xml node. |
View | inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot) Inflate a new view hierarchy from the specified xml resource. |
View | inflate(XmlPullParser parser, @Nullable ViewGroup root, boolean attachToRoot) Inflate a new view hierarchy from the specified XML node. |
void | setFactory(Factory factory) Attach a custom Factory interface for creating views while using this LayoutInflater. |
void | setFactory2(Factory2 factory) Like #setFactory , but allows you to set a Factory2 interface. |
void | setPrivateFactory(Factory2 factory) |