【问题标题】:set custom font through xml is not working in some devices通过 xml 设置自定义字体在某些设备中不起作用
【发布时间】:2014-12-22 08:29:44
【问题描述】:

通过使用这个link 我扩展了 TextView 并设置了我的自定义字体(ComicSansMS.ttf),它在 android kitkat 4.4 中工作正常,但在 ics(micromax A89)中没有应用字体。

此代码在 android kitkat 4.4 中运行良好,但在 ics(micromax A89) 中运行良好 - 它不会增加我的堆内存大小并且我的应用程序不会崩溃

<com.example.sample.setFont
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Large Text"
        android:textAppearance="?android:attr/textAppearanceLarge" 
        />

但是当我设置 app:fontName="ComicSansMS.ttf" 在 ics(micromax A89) 中工作正常但它增加了我的堆内存大小并且我的应用程序崩溃了。 提前致谢。

【问题讨论】:

标签: android custom-font android-fonts


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-13
    • 2015-11-29
    • 1970-01-01
    • 2012-02-11
    • 1970-01-01
    • 2015-04-01
    • 1970-01-01
    • 2015-08-10
    相关资源
    最近更新 更多