public static interface GenericInflater.Factory<T>
Modifier and Type | Method and Description |
---|---|
T |
onCreateItem(String name,
Context context,
AttributeSet attrs)
Hook you can supply that is called when inflating from a
inflater.
|
T onCreateItem(String name, Context context, AttributeSet attrs)
Note that it is good practice to prefix these custom names with your package (i.e., com.coolcompany.apps) to avoid conflicts with system names.
name
- Tag name to be inflated.context
- The context the item is being created in.attrs
- Inflation attributes as specified in XML file.