Lines Matching defs:theme
27 * A context wrapper that allows you to modify or replace the theme of the
32 private Resources.Theme mTheme;
38 * Creates a new context wrapper with no theme and no base context.
49 * Creates a new context wrapper with the specified theme.
51 * The specified theme will be applied on top of the base context's theme.
52 * Any attributes not explicitly defined in the theme identified by
56 * @param themeResId the resource ID of the theme to be applied on top of
57 * the base context's theme
65 * Creates a new context wrapper with the specified theme.
67 * Unlike {@link #ContextThemeWrapper(Context, int)}, the theme passed to
68 * this constructor will completely replace the base context's theme.
71 * @param theme the theme against which resources should be inflated
73 public ContextThemeWrapper(Context base, Resources.Theme theme) {
75 mTheme = theme;
151 public Resources.Theme getTheme() {
175 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme
176 * resource to the current Theme object. May be overridden to change the
180 * @param theme the theme being modified
181 * @param resId the style resource being applied to <var>theme</var>
183 * applied to <var>theme</var>
185 protected void onApplyThemeResource(Resources.Theme theme, int resId, boolean first) {
186 theme.applyStyle(resId, true);
193 final Resources.Theme theme = getBaseContext().getTheme();
194 if (theme != null) {
195 mTheme.setTo(theme);