ContextThemeWrapper

A context wrapper that allows you to modify or replace the theme of the wrapped context.

Constructors

Link copied to clipboard
constructor()
Creates a new context wrapper with no theme and no base context.
constructor(base: Context, @StyleRes themeResId: Int)
Creates a new context wrapper with the specified theme.
constructor(base: Context, theme: Resources.Theme)
Creates a new context wrapper with the specified theme.

Functions

Link copied to clipboard
open fun applyOverrideConfiguration(overrideConfiguration: Configuration)
Call to set an "override configuration" on this context -- this is a configuration that replies one or more values of the standard configuration that is applied to the context.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSystemService(name: String): Any
Link copied to clipboard
Link copied to clipboard
open fun getThemeResId(): Int
Returns the resource ID of the theme that is to be applied on top of the base context's theme.
Link copied to clipboard
open fun setTheme(resid: Int)