| Modifier and Type | Class and Description |
|---|---|
static interface |
LayoutInflater.Factory |
static class |
LayoutInflater.LayoutInflaterCreator |
static interface |
LayoutInflater.OnInitInflaterListener |
| Modifier | Constructor and Description |
|---|---|
protected |
LayoutInflater(android.content.Context context) |
protected |
LayoutInflater(android.content.Context context,
Fragment childFragment) |
protected |
LayoutInflater(android.view.LayoutInflater original,
android.content.Context newContext) |
protected |
LayoutInflater(android.view.LayoutInflater original,
android.content.Context newContext,
Fragment childFragment) |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
_createView(String name,
String prefix,
android.util.AttributeSet attrs) |
void |
addFactory(LayoutInflater.Factory factory) |
void |
addFactory(LayoutInflater.Factory factory,
int index) |
LayoutInflater |
cloneInContext(android.content.Context newContext) |
static LayoutInflater |
from(android.content.Context context) |
static LayoutInflater |
from(android.view.LayoutInflater inflater) |
android.view.LayoutInflater.Filter |
getFilter() |
android.support.v4.app.FragmentActivity |
getFragmentActivity() |
static android.view.View |
inflate(android.content.Context context,
int resource) |
static android.view.View |
inflate(android.content.Context context,
int resource,
android.view.ViewGroup root) |
static android.view.View |
inflate(android.content.Context context,
int resource,
android.view.ViewGroup root,
boolean attachToRoot) |
android.view.View |
inflate(int resource) |
android.view.View |
inflate(int resource,
android.view.ViewGroup root) |
android.view.View |
inflate(int resource,
android.view.ViewGroup root,
boolean attachToRoot) |
android.view.View |
inflate(org.xmlpull.v1.XmlPullParser parser) |
android.view.View |
inflate(org.xmlpull.v1.XmlPullParser parser,
android.view.ViewGroup root) |
android.view.View |
inflate(org.xmlpull.v1.XmlPullParser parser,
android.view.ViewGroup root,
boolean attachToRoot) |
LayoutInflater |
obtainFragmentChildInflater(Fragment fragment) |
protected android.view.View |
onCreateView(android.view.View parent,
String name,
android.util.AttributeSet attrs) |
static void |
register(Class<? extends android.view.View>... classes)
Iterate over classes and call
register(Class) for each |
static void |
register(Class<? extends android.view.View> clazz)
Fast mapping views by name
MyView -> com.myapppackage.widget.MyView |
static void |
register(String from,
String to)
Manually register shortcuts for inflating
Not recommend to use. |
static void |
registerPackage(String packageName) |
static void |
remap(Class<? extends android.view.View>... classes)
Deprecated.
Use
register(Class<? extends View>...) instead |
static void |
remap(Class<? extends android.view.View> clazz)
Deprecated.
Use
register(Class<? extends View>) instead |
static void |
remap(String prefix,
String... classess)
Deprecated.
|
static void |
remapHard(String from,
String to)
Deprecated.
Use
register(String,String) instead |
static void |
removeInstance(android.content.Context context) |
void |
setFactory(android.view.LayoutInflater.Factory factory) |
void |
setFactory(LayoutInflater.Factory factory) |
void |
setFactory2(android.view.LayoutInflater.Factory2 factory) |
void |
setFilter(android.view.LayoutInflater.Filter filter) |
void |
setFragmentActivity(android.support.v4.app.FragmentActivity fragmentActivity) |
static void |
setOnInitInflaterListener(LayoutInflater.OnInitInflaterListener listener) |
protected LayoutInflater |
setParent(android.view.LayoutInflater original) |
protected LayoutInflater(android.view.LayoutInflater original,
android.content.Context newContext)
protected LayoutInflater(android.view.LayoutInflater original,
android.content.Context newContext,
Fragment childFragment)
protected LayoutInflater(android.content.Context context)
protected LayoutInflater(android.content.Context context,
Fragment childFragment)
public static LayoutInflater from(android.view.LayoutInflater inflater)
public static LayoutInflater from(android.content.Context context)
public static android.view.View inflate(android.content.Context context,
int resource)
public static android.view.View inflate(android.content.Context context,
int resource,
android.view.ViewGroup root)
public static android.view.View inflate(android.content.Context context,
int resource,
android.view.ViewGroup root,
boolean attachToRoot)
public static void register(Class<? extends android.view.View>... classes)
register(Class) for eachpublic static void register(Class<? extends android.view.View> clazz)
public static void register(String from, String to)
public static void registerPackage(String packageName)
@Deprecated public static void remap(Class<? extends android.view.View>... classes)
register(Class<? extends View>...) instead@Deprecated public static void remap(Class<? extends android.view.View> clazz)
register(Class<? extends View>) instead@Deprecated public static void remap(String prefix, String... classess)
@Deprecated public static void remapHard(String from, String to)
register(String,String) insteadpublic static void removeInstance(android.content.Context context)
public static void setOnInitInflaterListener(LayoutInflater.OnInitInflaterListener listener)
public android.view.View _createView(String name, String prefix, android.util.AttributeSet attrs) throws ClassNotFoundException, android.view.InflateException
ClassNotFoundExceptionandroid.view.InflateExceptionpublic void addFactory(LayoutInflater.Factory factory)
public void addFactory(LayoutInflater.Factory factory, int index)
public LayoutInflater cloneInContext(android.content.Context newContext)
cloneInContext in class android.view.LayoutInflaterpublic android.view.LayoutInflater.Filter getFilter()
getFilter in class android.view.LayoutInflaterpublic android.support.v4.app.FragmentActivity getFragmentActivity()
public android.view.View inflate(int resource)
public android.view.View inflate(int resource,
android.view.ViewGroup root)
inflate in class android.view.LayoutInflaterpublic android.view.View inflate(int resource,
android.view.ViewGroup root,
boolean attachToRoot)
inflate in class android.view.LayoutInflaterpublic android.view.View inflate(org.xmlpull.v1.XmlPullParser parser)
public android.view.View inflate(org.xmlpull.v1.XmlPullParser parser,
android.view.ViewGroup root)
inflate in class android.view.LayoutInflaterpublic android.view.View inflate(org.xmlpull.v1.XmlPullParser parser,
android.view.ViewGroup root,
boolean attachToRoot)
inflate in class android.view.LayoutInflaterpublic LayoutInflater obtainFragmentChildInflater(Fragment fragment)
protected android.view.View onCreateView(android.view.View parent,
String name,
android.util.AttributeSet attrs)
throws ClassNotFoundException
onCreateView in class android.view.LayoutInflaterClassNotFoundExceptionpublic void setFactory(android.view.LayoutInflater.Factory factory)
setFactory in class android.view.LayoutInflaterpublic void setFactory(LayoutInflater.Factory factory)
public void setFactory2(android.view.LayoutInflater.Factory2 factory)
setFactory2 in class android.view.LayoutInflaterpublic void setFilter(android.view.LayoutInflater.Filter filter)
setFilter in class android.view.LayoutInflaterpublic void setFragmentActivity(android.support.v4.app.FragmentActivity fragmentActivity)
protected LayoutInflater setParent(android.view.LayoutInflater original)
Copyright © 2012-2013. All Rights Reserved.