@Test public void testConstructor() { new ContextThemeWrapper(); new ContextThemeWrapper(mContext, R.style.TextAppearance); new ContextThemeWrapper(mContext, mContext.getTheme()); }
@Override public Resources.Theme getTheme() { if (mTheme != null) { return mTheme; } if (mThemeResource == 0) { mThemeResource = R.style.Theme_AppCompat_Light; } initializeTheme(); return mTheme; }
ContextThemeWrapper extends ContextWrapper { @Override public Resources.Theme getTheme() { if (mTheme != null) { return mTheme; } if (mThemeResource == 0) { mThemeResource = R.style.Theme_AppCompat_Light; } initializeTheme(); return mTheme; } }
ContextThemeWrapper extends ContextWrapper { @Override public Resources.Theme getTheme() { if (mTheme != null) { return mTheme; } if (mThemeResource == 0) { mThemeResource = R.style.Theme_AppCompat_Light; } initializeTheme(); return mTheme; } ContextThemeWrapper();  ContextThemeWrapper(Context base, @StyleRes int themeResId);  ContextThemeWrapper(Context base, Resources.Theme theme); }
ContextThemeWrapper extends ContextWrapper { @Override public Resources.Theme getTheme() { if (mTheme != null) { return mTheme; } if (mThemeResource == 0) { mThemeResource = R.style.Theme_AppCompat_Light; } initializeTheme(); return mTheme; } ContextThemeWrapper();  ContextThemeWrapper(Context base, @StyleRes int themeResId);  ContextThemeWrapper(Context base, Resources.Theme theme); void applyOverrideConfiguration(Configuration overrideConfiguration); @Override Resources getResources(); @Override void setTheme(int resid); int getThemeResId(); @Override Resources.Theme getTheme(); @Override Object getSystemService(String name); @Override AssetManager getAssets(); }
ContextThemeWrapper extends ContextWrapper { @Override public Resources.Theme getTheme() { if (mTheme != null) { return mTheme; } if (mThemeResource == 0) { mThemeResource = R.style.Theme_AppCompat_Light; } initializeTheme(); return mTheme; } ContextThemeWrapper();  ContextThemeWrapper(Context base, @StyleRes int themeResId);  ContextThemeWrapper(Context base, Resources.Theme theme); void applyOverrideConfiguration(Configuration overrideConfiguration); @Override Resources getResources(); @Override void setTheme(int resid); int getThemeResId(); @Override Resources.Theme getTheme(); @Override Object getSystemService(String name); @Override AssetManager getAssets();  }