public class ItemInflater extends GenericInflater<ItemHierarchy>
Item
hierarchies from XML files.
Modified from android.support.v7.preference.PreferenceInflaterModifier and Type | Class and Description |
---|---|
static interface |
ItemInflater.ItemParent |
GenericInflater.Factory<T>
Constructor and Description |
---|
ItemInflater(Context context) |
Modifier and Type | Method and Description |
---|---|
ItemInflater |
cloneInContext(Context newContext)
Create a copy of the existing inflater object, with the copy
pointing to a different Context than the original.
|
Context |
getContext()
Return the context we are running in, for access to resources, class
loader, etc.
|
protected void |
onAddChildItem(ItemHierarchy parent,
ItemHierarchy child) |
createItem, getDefaultPackage, getFactory, inflate, inflate, inflate, inflate, inflate, onCreateCustomFromTag, onCreateItem, onMergeRoots, setDefaultPackage, setFactory
public ItemInflater(Context context)
public ItemInflater cloneInContext(Context newContext)
GenericInflater
ContextThemeWrapper
to create a new inflater to go along
with the new Context theme.cloneInContext
in class GenericInflater<ItemHierarchy>
newContext
- The new Context to associate with the new inflater.
May be the same as the original Context if desired.public Context getContext()
getContext
in class GenericInflater<ItemHierarchy>
protected void onAddChildItem(ItemHierarchy parent, ItemHierarchy child)
onAddChildItem
in class GenericInflater<ItemHierarchy>