How to debug text not shown?

29 views
Skip to first unread message

David

unread,
Mar 2, 2017, 3:25:52 PM3/2/17
to android-porting
Hi, 

  I am porting Android 4.4.4 for a low cost device. After porting I found all text not shown in UI.
  Android draws buttons, edit boxes but all text associated to them are gone.

  There is no suspicious error message in logcat. 
  Any suggestion to debug this kind of issue?


David

unread,
Mar 3, 2017, 10:23:34 AM3/3/17
to android-porting
I have some update:

The reason text not shown is default facetype not work.

In TextView.java, setTypefaceFromAttrs, if I ceate a typeface using createFromFile,the text shows correctly.

Is anyone familiar with how font is load in Android?

David於 2017年3月3日星期五 UTC+8上午4時25分52秒寫道:
Reply all
Reply to author
Forward
0 new messages