public class ThemeFactory
extends java.lang.Object
implements android.view.LayoutInflater.Factory
| 限定符和类型 | 方法和说明 |
|---|---|
static ThemeFactory |
createOrUpdateInstance(android.content.Context context,
java.lang.String packageName,
java.lang.String generalThemeName)
创建或修改ThemeFactory实例,当前类是单例的
|
android.view.View |
onCreateView(java.lang.String name,
android.content.Context context,
android.util.AttributeSet attrs) |
public static ThemeFactory createOrUpdateInstance(android.content.Context context, java.lang.String packageName, java.lang.String generalThemeName)
创建或修改ThemeFactory实例,当前类是单例的
context - packageName - 需要应用的主题包名,如果要使用默认主题,可传nullgeneralThemeName - 主题包styles.xml中通用主题样式的名字,如果没有通用主题样式,可传nullpublic android.view.View onCreateView(java.lang.String name,
android.content.Context context,
android.util.AttributeSet attrs)
onCreateView 在接口中 android.view.LayoutInflater.Factory