显示在TextView中所有的Uni code字符 [英] Display all Unicode chars in TextView

查看:257
本文介绍了显示在TextView中所有的Uni code字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法来显示我的TextView所有统一code字符,在我的手机?

我已经试过特殊字符,如'\ u0279',我得到这样的复选框(默认字符)。 这是基于本地化和国际化设置?

解决方案

 电视=(TextView中)findViewById(R.id.textView1);
字体的字体= Typeface.createFromAsset(getAssets(),TAU_BHON.TTF);
tv.setTypeface(字体);
 

地方,将支持你的语言,在资产folder.In这种情况下,我已经使用TAU_BHON.TTF的字体

Is there any way to show all Unicode chars in my TextView, on my phone?

I have tried special characters like '\u0279' and I get something like box (default char). Is this based on l10n and i18n settings?

解决方案

tv=(TextView)findViewById(R.id.textView1);
Typeface font= Typeface.createFromAsset(getAssets(), "TAU_BHON.TTF");
tv.setTypeface(font); 

Place the font that will support your language in the assets folder.In this case i have used TAU_BHON.TTF

这篇关于显示在TextView中所有的Uni code字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆