changeCustomTheme

public static void changeCustomTheme(Context context, String customThemeType, String baseOnTheme)

Switches to a custom theme that is stacked on top of a base built-in theme.

Application order:

  1. All style layers from baseOnTheme are applied first
  2. All style layers from customThemeType are applied on top
  3. 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);

Parameters

context

context (Activity or Application context recommended)

customThemeType

custom theme identifier (must be registered via addTheme)

baseOnTheme

base theme identifier to stack under the custom theme