Esempio n. 1
0
        public ThemeSupport(ThemeActivity themeActivity)
        {
            if (themeActivity == null)
            {
                //Raise Exception
            }

            this.themeActivity = themeActivity;
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            themeSupport = new ThemeSupport(this);
            if (savedInstanceState != null)
            {
                currentActivityTheme = savedInstanceState.GetString(STATE_ACTIVITY_THEME, ThemeSupport.THEME_UNDEFINED);
            }

            // MUST BE SET BEFORE setContentView
            themeSupport.updateActivityTheme();

            self = this;
        }