public static interface LayoutInflater.Factory
Modifier and Type | Method and Description |
---|---|
View |
onCreateView(String name,
Context context,
AttributeSet attrs)
Hook you can supply that is called when inflating from a LayoutInflater.
|
View onCreateView(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 view is being created in.attrs
- Inflation attributes as specified in XML file.