public final class LayoutInflaterCompat extends Object
LayoutInflater
introduced after API level 4 in a backwards compatible fashion.Modifier and Type | Method and Description |
---|---|
static LayoutInflaterFactory |
getFactory(LayoutInflater inflater)
Return the current
LayoutInflaterFactory (or null). |
static void |
setFactory(LayoutInflater inflater,
LayoutInflaterFactory factory)
Attach a custom Factory interface for creating views while using
this LayoutInflater.
|
public static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory)
public static LayoutInflaterFactory getFactory(LayoutInflater inflater)
LayoutInflaterFactory
(or null). This is
called on each element name. If the factory returns a View, add that
to the hierarchy. If it returns null, proceed to call onCreateView(name).LayoutInflaterFactory
associated with the
LayoutInflater
. Will be null
if the inflater does not
have a LayoutInflaterFactory
but a raw LayoutInflater.Factory
.LayoutInflater.getFactory()