uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper Java Examples
The following examples show how to use
uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseAppCompatActivity.java From Capstone-Project with MIT License | 5 votes |
@Override protected void attachBaseContext(Context newBase) { // Attach calligraphy context if font name is not null. Font name will only be null if user // has selected default font. if (TextUtils.isEmpty(PredatorSharedPreferences.getCurrentFont(newBase))) { super.attachBaseContext(newBase); } else { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); } }
Example #2
Source File: AppLinkingActivity.java From Capstone-Project with MIT License | 5 votes |
@Override protected void attachBaseContext(Context newBase) { // Attach calligraphy context if font name is not null. Font name will only be null if user // has selected default font. if (TextUtils.isEmpty(PredatorSharedPreferences.getCurrentFont(newBase))) { super.attachBaseContext(newBase); } else { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); } }
Example #3
Source File: BaseFragment.java From iGap-Android with GNU Affero General Public License v3.0 | 5 votes |
@Override public void onAttach(Context context) { //super.onAttach(context); super.onAttach(CalligraphyContextWrapper.wrap(context)); G.fragmentActivity = (FragmentActivity) context; currentFragment = this; hideKeyboard(); }
Example #4
Source File: ContextHelper.java From candybar-library with Apache License 2.0 | 5 votes |
@NonNull static Context getBaseContext(@NonNull View view) { Context context = view.getContext(); if (context instanceof ContextThemeWrapper) { context = ((ContextThemeWrapper) view.getContext()).getBaseContext(); } else if (context instanceof CalligraphyContextWrapper) { context = ((CalligraphyContextWrapper) view.getContext()).getBaseContext(); } return context; }
Example #5
Source File: BaseActivity.java From particle-android with Apache License 2.0 | 5 votes |
@Override protected void attachBaseContext(Context newBase) { if (!customFontInitDone) { CalligraphyConfig.initDefault( new CalligraphyConfig.Builder() .setDefaultFontPath(newBase.getString(R.string.normal_text_font_name)) .setFontAttrId(R.attr.fontPath) .build()); customFontInitDone = true; } super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); SDKGlobals.init(this); }
Example #6
Source File: ImageViewerActivity.java From hipda with GNU General Public License v2.0 | 5 votes |
@Override protected void attachBaseContext(Context newBase) { if (HiApplication.isFontSet()) super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); else super.attachBaseContext(newBase); }
Example #7
Source File: BaseActivity.java From spark-setup-android with Apache License 2.0 | 5 votes |
@Override protected void attachBaseContext(Context newBase) { if (!customFontInitDone) { // FIXME: make actually customizable via resources // (see file extension string formatting nonsense) CalligraphyConfig.initDefault( new CalligraphyConfig.Builder() .setDefaultFontPath(newBase.getString(R.string.normal_text_font_name)) .setFontAttrId(R.attr.fontPath) .build()); customFontInitDone = true; } super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); SDKGlobals.init(this); }
Example #8
Source File: BaseActivity.java From hipda with GNU General Public License v2.0 | 5 votes |
@Override protected void attachBaseContext(Context newBase) { if (HiApplication.isFontSet()) super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); else super.attachBaseContext(newBase); }
Example #9
Source File: BaseActivity.java From Dashboard with MIT License | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #10
Source File: GroupDetailActivity.java From citrus with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #11
Source File: MainActivity.java From Calligraphy with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #12
Source File: AbstractBarterLiActivity.java From barterli_android with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(new CalligraphyContextWrapper(newBase)); }
Example #13
Source File: MainActivity.java From android-atleap with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #14
Source File: AuthActivity.java From android-atleap with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #15
Source File: BaseActivity.java From v2ex-daily-android with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(new CalligraphyContextWrapper(newBase)); }
Example #16
Source File: MainActivity.java From roboto-calendar-view with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #17
Source File: BaseActivity.java From giraff-android with GNU Affero General Public License v3.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #18
Source File: ActivityPopUpNotification.java From iGap-Android with GNU Affero General Public License v3.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(G.updateResources(newBase))); }
Example #19
Source File: MainActivity.java From citrus with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #20
Source File: MainActivity.java From LeisureRead with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #21
Source File: BaseActivity.java From UPMiss with GNU General Public License v3.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #22
Source File: ABaseActivity.java From SaveInsta with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #23
Source File: SettingsActivity.java From 600SeriesAndroidUploader with MIT License | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #24
Source File: MainActivity.java From 600SeriesAndroidUploader with MIT License | 4 votes |
@Override protected void attachBaseContext(Context newBase) { Log.d(TAG, "attachBaseContext called"); super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #25
Source File: ManageCNLActivity.java From 600SeriesAndroidUploader with MIT License | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #26
Source File: FanMenuButtons1Activity.java From android-widget-fanmenu with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #27
Source File: CandyBarMainActivity.java From candybar-library with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { LocaleHelper.setLocale(newBase); super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #28
Source File: CandyBarSplashActivity.java From candybar-library with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #29
Source File: CandyBarMuzeiActivity.java From candybar-library with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { LocaleHelper.setLocale(newBase); super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
Example #30
Source File: CandyBarWallpaperActivity.java From candybar-library with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context newBase) { LocaleHelper.setLocale(newBase); super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }