当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Foreign characters (japanese) not getting bold on textview

问题描述:

The jap chars comes from server as json so this how to make bold textview android japanese character doesn't apply to me.

I tried the following but to no avail.

title.setTypeface(null,Typeface.BOLD);

android:textStyle="bold"

title.setText(Html.fromHtml("<b>" + data.getBookTitle() + "</b>"));

网友答案:

I still can't bold it, but you can achieve a somewhat the same approach through the use of shadows in the xml, just add these to your textviews, edit the values to your liking.

This also applies to most foreign characters, not just jap chars.

android:shadowColor="#000000"
android:shadowDx="0.1"
android:shadowDy="0.1"
android:shadowRadius="0.5"
分享给朋友:
您可能感兴趣的文章:
随机阅读: