public class PhoneLayoutInflater extends LayoutInflater
LayoutInflater.Factory, LayoutInflater.Factory2, LayoutInflater.Filter
mContext
Modifier | Constructor and Description |
---|---|
|
PhoneLayoutInflater(Context context)
Instead of instantiating directly, you should retrieve an instance
through
Context.getSystemService(java.lang.String) |
protected |
PhoneLayoutInflater(LayoutInflater original,
Context newContext) |
Modifier and Type | Method and Description |
---|---|
LayoutInflater |
cloneInContext(Context newContext)
Create a copy of the existing LayoutInflater object, with the copy
pointing to a different Context than the original.
|
protected View |
onCreateView(String name,
AttributeSet attrs)
Override onCreateView to instantiate names that correspond to the
widgets known to the Widget factory.
|
createView, from, getContext, getFactory, getFactory2, getFilter, inflate, inflate, inflate, inflate, onCreateView, setFactory, setFactory2, setFilter, setPrivateFactory
public PhoneLayoutInflater(Context context)
Context.getSystemService(java.lang.String)
context
- The Context in which in which to find resources and other
application-specific things.Context.getSystemService(java.lang.String)
protected PhoneLayoutInflater(LayoutInflater original, Context newContext)
protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException
onCreateView
in class LayoutInflater
name
- The fully qualified class name of the View to be create.attrs
- An AttributeSet of attributes to apply to the View.ClassNotFoundException
public LayoutInflater cloneInContext(Context newContext)
LayoutInflater
ContextThemeWrapper
to create a new LayoutInflater to go along
with the new Context theme.cloneInContext
in class LayoutInflater
newContext
- The new Context to associate with the new LayoutInflater.
May be the same as the original Context if desired.