public class PluginLayoutInflater
extends java.lang.Object
Constructor and Description |
---|
PluginLayoutInflater() |
Modifier and Type | Method and Description |
---|---|
static void |
dispose()
Responsible for cleaning out the cache in the LayoutInflater.
|
static android.view.View |
inflate(android.content.Context plugin,
int resId)
Preferred mechanism for loading a view within TAK from a plugin.
|
static android.view.View |
inflate(android.content.Context plugin,
int resId,
android.view.ViewGroup root)
Preferred mechanism for loading a view within TAK from a plugin.
|
static android.view.View |
inflate(android.content.Context plugin,
int resId,
android.view.ViewGroup root,
boolean attachToRoot)
Preferred mechanism for loading a view within TAK from a plugin.
|
public static android.view.View inflate(android.content.Context plugin, int resId, android.view.ViewGroup root, boolean attachToRoot)
LayoutInflater.inflate(int, ViewGroup, boolean)
Used for inflating plugin without the concerns that come with previously cached views. Cached
views become a problem when the class name is used to cache the view but the view might be
from a different class loader.plugin
- Plugin context used to inflate the layoutresId
- Layout resource IDroot
- Root/parent view groupattachToRoot
- True to attach to the parent view
False to only use it for layout parameterspublic static android.view.View inflate(android.content.Context plugin, int resId, android.view.ViewGroup root)
LayoutInflater.inflate(int, ViewGroup)
Used for inflating plugin without the concerns that come with previously cached views. Cached
views become a problem when the class name is used to cache the view but the view might be
from a different class loader.plugin
- Plugin context used to inflate the layoutresId
- Layout resource IDroot
- Root/parent view grouppublic static android.view.View inflate(android.content.Context plugin, int resId)
LayoutInflater.inflate(int, ViewGroup)
with a null root.
Used for inflating plugin without the concerns that come with previously cached views. Cached
views become a problem when the class name is used to cache the view but the view might be
from a different class loader.plugin
- Plugin context used to inflate the layoutresId
- Layout resource IDpublic static void dispose()