Java Code Examples for uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper#wrap()

The following examples show how to use uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper#wrap() . 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: BaseActivity.java    From particle-android with Apache License 2.0 5 votes vote down vote up
@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 2
Source File: ImageViewerActivity.java    From hipda with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    if (HiApplication.isFontSet())
        super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
    else
        super.attachBaseContext(newBase);
}
 
Example 3
Source File: MainActivity.java    From android-atleap with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 4
Source File: BaseActivity.java    From android-mvp-architecture with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 5
Source File: MainActivity.java    From Oblique with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 6
Source File: SampleTwoActivity.java    From Oblique with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 7
Source File: BaseActivity.java    From android-mvp-interactor-architecture with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 8
Source File: BaseActivity.java    From Dashboard with MIT License 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 9
Source File: MainActivity.java    From 600SeriesAndroidUploader with MIT License 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    Log.d(TAG, "attachBaseContext called");
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 10
Source File: BaseActivity.java    From Messenger-Android-XML-Template with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 11
Source File: ActivityEnhanced.java    From iGap-Android with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(G.updateResources(newBase)));
}
 
Example 12
Source File: CreateNewTaskActivity.java    From citrus with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 13
Source File: BaseActivity.java    From juda with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context context) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(context));
}
 
Example 14
Source File: MainActivity.java    From citrus with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 15
Source File: CandyBarWallpaperActivity.java    From candybar-library with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    LocaleHelper.setLocale(newBase);
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 16
Source File: WallpaperBoardMuzeiActivity.java    From wallpaperboard with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    LocaleHelper.setLocale(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 vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 18
Source File: AuthActivity.java    From android-atleap with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 19
Source File: OverviewActivity.java    From android-things-electricity-monitor with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
 
Example 20
Source File: FanMenuButtons1Activity.java    From android-widget-fanmenu with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}