android.view
Class LayoutInflater
java.lang.Object
android.view.LayoutInflater
public abstract class LayoutInflater
- extends Object
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutInflater
protected LayoutInflater(Context context)
LayoutInflater
protected LayoutInflater(LayoutInflater original,
Context newContext)
from
public static LayoutInflater from(Context context)
cloneInContext
public abstract LayoutInflater cloneInContext(Context newContext)
getContext
public Context getContext()
getFactory
public final LayoutInflater.Factory getFactory()
getFactory2
public final LayoutInflater.Factory2 getFactory2()
setFactory
public void setFactory(LayoutInflater.Factory factory)
setFactory2
public void setFactory2(LayoutInflater.Factory2 factory)
getFilter
public LayoutInflater.Filter getFilter()
setFilter
public void setFilter(LayoutInflater.Filter filter)
inflate
public View inflate(int resource,
ViewGroup root)
inflate
public View inflate(org.xmlpull.v1.XmlPullParser parser,
ViewGroup root)
inflate
public View inflate(int resource,
ViewGroup root,
boolean attachToRoot)
inflate
public View inflate(org.xmlpull.v1.XmlPullParser parser,
ViewGroup root,
boolean attachToRoot)
createView
public final View createView(String name,
String prefix,
AttributeSet attrs)
throws ClassNotFoundException,
InflateException
- Throws:
ClassNotFoundException
InflateException
onCreateView
protected View onCreateView(String name,
AttributeSet attrs)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
onCreateView
protected View onCreateView(View parent,
String name,
AttributeSet attrs)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
Copyright © 2008-2012. All Rights Reserved.