public abstract class GenericInflater<T,P extends GenericInflater.Parent<T>> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GenericInflater.Factory<T> |
static interface |
GenericInflater.Parent<T> |
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
mConstructorArgs |
protected Class<?>[] |
mConstructorSignature |
| Modifier | Constructor and Description |
|---|---|
protected |
GenericInflater(android.content.Context context) |
protected |
GenericInflater(GenericInflater<T,P> original,
android.content.Context newContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(GenericInflater.Factory<T> factory) |
abstract GenericInflater<T,P> |
cloneInContext(android.content.Context newContext) |
T |
createItem(String name,
String prefix,
android.util.AttributeSet attrs) |
protected Constructor<?> |
findConstructor(Class<?> clazz) |
ClassLoader |
getClassLoader() |
android.content.Context |
getContext() |
GenericInflater.Factory<T> |
getFactory()
Deprecated.
|
GenericInflater.Factory<T> |
getFactory(int position) |
int |
getFactoryCount() |
T |
inflate(int resource) |
T |
inflate(int resource,
P root) |
T |
inflate(int resource,
P root,
boolean attachToRoot) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser,
P root) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser,
P root,
boolean attachToRoot) |
protected Object[] |
obtainConstructorArgs(String name,
android.util.AttributeSet attrs,
Constructor<?> constructor) |
protected boolean |
onCreateCustomFromTag(org.xmlpull.v1.XmlPullParser parser,
T parent,
android.util.AttributeSet attrs) |
protected T |
onCreateItem(String name,
android.util.AttributeSet attrs) |
protected P |
onMergeRoots(P givenRoot,
boolean attachToGivenRoot,
P xmlRoot) |
void |
registerPackage(String name) |
void |
removeFactory(GenericInflater.Factory<T> factory) |
void |
setClassLoader(ClassLoader classLoader) |
void |
setFactory(GenericInflater.Factory<T> factory) |
void |
unregisterPackage(String string) |
protected final Object[] mConstructorArgs
protected final Class<?>[] mConstructorSignature
protected GenericInflater(android.content.Context context)
protected GenericInflater(GenericInflater<T,P> original, android.content.Context newContext)
public void addFactory(GenericInflater.Factory<T> factory)
public abstract GenericInflater<T,P> cloneInContext(android.content.Context newContext)
public final T createItem(String name, String prefix, android.util.AttributeSet attrs) throws ClassNotFoundException, android.view.InflateException
ClassNotFoundExceptionandroid.view.InflateExceptionprotected Constructor<?> findConstructor(Class<?> clazz) throws NoSuchMethodException
NoSuchMethodExceptionpublic ClassLoader getClassLoader()
public android.content.Context getContext()
@Deprecated public final GenericInflater.Factory<T> getFactory()
public final GenericInflater.Factory<T> getFactory(int position)
public final int getFactoryCount()
public T inflate(int resource)
public T inflate(org.xmlpull.v1.XmlPullParser parser)
protected Object[] obtainConstructorArgs(String name, android.util.AttributeSet attrs, Constructor<?> constructor)
protected boolean onCreateCustomFromTag(org.xmlpull.v1.XmlPullParser parser,
T parent,
android.util.AttributeSet attrs)
throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserExceptionprotected T onCreateItem(String name, android.util.AttributeSet attrs) throws ClassNotFoundException
ClassNotFoundExceptionpublic void registerPackage(String name)
public void removeFactory(GenericInflater.Factory<T> factory)
public void setClassLoader(ClassLoader classLoader)
public void setFactory(GenericInflater.Factory<T> factory)
public void unregisterPackage(String string)
Copyright © 2012-2013. All Rights Reserved.