【发布时间】: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) 中工作正常但它增加了我的堆内存大小并且我的应用程序崩溃了。
提前致谢。
【问题讨论】:
-
感谢彼得森...增加我的堆内存大小已经消失,但字体未应用于 ics(micromax A89)。
标签: android custom-font android-fonts