public class ThemeManager
extends java.lang.Object
SciChartSurface
instancesModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_THEME
Specifies default theme style id
|
Constructor and Description |
---|
ThemeManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addTheme(android.content.Context context,
int themeId)
Creates and adds theme from specified style
|
static void |
applyDefaultTheme(IThemeable themeable,
android.content.Context context)
Apply default theme to specified
IThemeable instance |
static void |
applyTheme(IThemeable themeable,
int themeId,
android.content.Context context)
Apply theme to specified
IThemeable instance |
static IThemeProvider |
getThemeProvider(int themeId)
Get
IThemeProvider instance by theme id |
static void |
removeTheme(int themeId)
Removes cached
IThemeProvider instance by its id |
public static IThemeProvider getThemeProvider(@StyleRes int themeId)
IThemeProvider
instance by theme idthemeId
- The id of theme to getIThemeProvider
instancepublic static void removeTheme(@StyleRes int themeId)
IThemeProvider
instance by its idthemeId
- The id of theme to removepublic static void addTheme(android.content.Context context, @StyleRes int themeId)
context
- Context of applicationthemeId
- The theme style to create IThemeProvider
frompublic static void applyTheme(IThemeable themeable, @StyleRes int themeId, android.content.Context context)
IThemeable
instancethemeable
- The target to apply theme tothemeId
- The theme idcontext
- Context of applicationpublic static void applyDefaultTheme(IThemeable themeable, android.content.Context context)
IThemeable
instancethemeable
- The target to apply theme tocontext
- Context of application