示例#1
0
        // Required by Calligraphy
        protected override void AttachBaseContext(Context newBase)
        {
            ISharedPreferences preferences = PreferenceManager.GetDefaultSharedPreferences(newBase);

            string lang = preferences.GetString("locale", "en");

            newBase = LanguageContext.NewLanguageAwareContext(lang, newBase);
            Context context = new LanguageContext(newBase);

            base.AttachBaseContext(CalligraphyContextWrapper.Wrap(context));
        }
 protected override void AttachBaseContext(Context newBase)
 {
     //SimpleStorage.SetContext(newBase);
     base.AttachBaseContext(CalligraphyContextWrapper.Wrap(newBase));
 }
示例#3
0
 protected override void AttachBaseContext(Context @base)
 {
     base.AttachBaseContext(CalligraphyContextWrapper.Wrap(@base));
 }
 protected override void AttachBaseContext(Context @base)
 {
     ViewUtil.SetFont(true, @base.GetString(Resource.String.AppFont));
     base.AttachBaseContext(CalligraphyContextWrapper.Wrap(@base));
 }