change Custom Theme
Switches to a custom theme that is stacked on top of a base built-in theme.
Application order:
- All style layers from
baseOnThemeare applied first - All style layers from
customThemeTypeare applied on top - Later layers override earlier ones for conflicting attributes
ChatUIThemeManager.addTheme("MY_BLUE_THEME",
R.style.MyBlueLightTheme, R.style.MyBlueDarkTheme);
ChatUIThemeManager.changeCustomTheme(context, "MY_BLUE_THEME",
ChatUIThemeManager.LIVELY_THEME);
Content copied to clipboard
Parameters
context
context (Activity or Application context recommended)
custom Theme Type
custom theme identifier (must be registered via addTheme)
base On Theme
base theme identifier to stack under the custom theme