LayoutInflaterCompat
public final class LayoutInflaterCompat
Helper for accessing features in LayoutInflater.
Summary
Public methods |
|
|---|---|
static LayoutInflaterFactory |
This method is deprecated. Use |
static void |
This method is deprecated. Use |
static void |
setFactory2(Attach a custom |
Public methods
public static LayoutInflaterFactorygetFactory(LayoutInflater inflater)
Return the current 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).
| Returns | |
|---|---|
LayoutInflaterFactory |
The |
| See also | |
|---|---|
getFactory |
public static voidsetFactory(
@NonNull LayoutInflater inflater,
@NonNull LayoutInflaterFactory factory
)
Attach a custom Factory interface for creating views while using this LayoutInflater. This must not be null, and can only be set once; after setting, you can not change the factory.
| See also | |
|---|---|
setFactory |
setFactory2
public static void setFactory2(
@NonNull LayoutInflater inflater,
@NonNull LayoutInflater.Factory2 factory
)
Attach a custom LayoutInflater.Factory2 for creating views while using this LayoutInflater. This must not be null, and can only be set once; after setting, you can not change the factory.
| See also | |
|---|---|
setFactory2 |