古吉拉特语字体的Andr​​oid应用程序 [英] Android Application in Gujarati font

查看:180
本文介绍了古吉拉特语字体的Andr​​oid应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发的是一种在文本视图古吉拉特语字体的应用,但我的问题是,在文本查看显示框,而不是古吉拉特语字体我有字型和文本试图在string.xml但不工作,请帮助我,我要在学校在周二提交,请帮我

I am developing application which is having Gujarati font in text-view but my problem is that in text-view it shows the box instead of Gujarati font i have tried by "TypeFace" and text is at string.xml but it is not working please help me i have to submit on tuesday at school so please please help me

感谢您提前

TextView的上限=(TextView中)view.findViewById(R.id.caption);
字体TF = Typeface.createFromAsset(getAssets(),字体/ gujaratifont.ttf);
cap.setTypeface(TF);
cap.setText(R.string.gujarati);

推荐答案

放下你的文件夹资产

尝试做这样。 getResources()的getString(R.string.gujarati);

它的一个原因是因为资源无法得到TextView的。刚检查出来。

Its one reason is because Resources could not get to the TextView. Just Check it out.

这篇关于古吉拉特语字体的Andr​​oid应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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