Back to project page MaterialManager.
The source code is released under:
There is no license, someone decided to pretty much republish Cabinet with no credit so I?m taking away the license altogether.
If you think the Android project MaterialManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.afollestad.cabinet.ui.base; //from w w w .j a va 2s . co m import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import com.afollestad.cabinet.utils.ThemeUtils; /** * @author Aidan Follestad (afollestad) */ public class ThemableActivity extends ActionBarActivity { private ThemeUtils mThemeUtils; @Override protected void onCreate(Bundle savedInstanceState) { mThemeUtils = new ThemeUtils(this); setTheme(mThemeUtils.getCurrent()); super.onCreate(savedInstanceState); } @Override protected void onResume() { super.onResume(); if (mThemeUtils.isChanged()) { setTheme(mThemeUtils.getCurrent()); recreate(); } } }