public abstract class LayoutInflater extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LayoutInflater.Factory |
static interface |
LayoutInflater.Factory2 |
static interface |
LayoutInflater.Filter |
| Modifier | Constructor and Description |
|---|---|
protected |
LayoutInflater(Context context) |
protected |
LayoutInflater(LayoutInflater original,
Context newContext) |
| Modifier and Type | Method and Description |
|---|---|
abstract LayoutInflater |
cloneInContext(Context newContext) |
View |
createView(String name,
String prefix,
AttributeSet attrs) |
static LayoutInflater |
from(Context context) |
Context |
getContext() |
LayoutInflater.Factory |
getFactory() |
LayoutInflater.Factory2 |
getFactory2() |
LayoutInflater.Filter |
getFilter() |
View |
inflate(int resource,
ViewGroup root) |
View |
inflate(int resource,
ViewGroup root,
boolean attachToRoot) |
View |
inflate(org.xmlpull.v1.XmlPullParser parser,
ViewGroup root) |
View |
inflate(org.xmlpull.v1.XmlPullParser parser,
ViewGroup root,
boolean attachToRoot) |
protected View |
onCreateView(String name,
AttributeSet attrs) |
protected View |
onCreateView(View parent,
String name,
AttributeSet attrs) |
void |
setFactory(LayoutInflater.Factory factory) |
void |
setFactory2(LayoutInflater.Factory2 factory) |
void |
setFilter(LayoutInflater.Filter filter) |
protected LayoutInflater(Context context)
protected LayoutInflater(LayoutInflater original, Context newContext)
public static LayoutInflater from(Context context)
public abstract LayoutInflater cloneInContext(Context newContext)
public Context getContext()
public final LayoutInflater.Factory getFactory()
public final LayoutInflater.Factory2 getFactory2()
public void setFactory(LayoutInflater.Factory factory)
public void setFactory2(LayoutInflater.Factory2 factory)
public LayoutInflater.Filter getFilter()
public void setFilter(LayoutInflater.Filter filter)
public View inflate(org.xmlpull.v1.XmlPullParser parser, ViewGroup root, boolean attachToRoot)
public final View createView(String name, String prefix, AttributeSet attrs) throws ClassNotFoundException, InflateException
protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException
ClassNotFoundExceptionprotected View onCreateView(View parent, String name, AttributeSet attrs) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2008-2013. All Rights Reserved.