Tag Archives: theme

738 views

Android runtime change switch Activity theme

static boolean mbThemeLight = false;   @Override public void onCreate(Bundle savedInstanceState) { if(mbThemeLight) setTheme(android.R.style.Theme_Light); super.onCreate(savedInstanceState); // bla bla bla………. }   private void switchTheme(){ mbThemeLight = true; this.recreate(); }

Posted in Android Examples Code, Android Studio | Tagged | Comments Off on Android runtime change switch Activity theme