Java android.view LayoutInflater fields, constructors, methods, implement or subclass

Example usage for Java android.view LayoutInflater fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view LayoutInflater.

The text is from its open source code.

Method

LayoutInflatercloneInContext(Context newContext)
Create a copy of the existing LayoutInflater object, with the copy pointing to a different Context than the original.
ViewcreateView(String name, String prefix, AttributeSet attrs)
Low-level function for instantiating a view by name.
LayoutInflaterfrom(Context context)
Obtains the LayoutInflater from the given context.
ContextgetContext()
Return the context we are running in, for access to resources, class loader, etc.
FactorygetFactory()
Return the current Factory (or null).
Viewinflate(@LayoutRes int resource, @Nullable ViewGroup root)
Inflate a new view hierarchy from the specified xml resource.
Viewinflate(XmlPullParser parser, @Nullable ViewGroup root)
Inflate a new view hierarchy from the specified xml node.
Viewinflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot)
Inflate a new view hierarchy from the specified xml resource.
Viewinflate(XmlPullParser parser, @Nullable ViewGroup root, boolean attachToRoot)
Inflate a new view hierarchy from the specified XML node.
voidsetFactory(Factory factory)
Attach a custom Factory interface for creating views while using this LayoutInflater.
voidsetFactory2(Factory2 factory)
Like #setFactory , but allows you to set a Factory2 interface.
voidsetPrivateFactory(Factory2 factory)