古吉拉特语字体的Andr​​oid应用程序

古吉拉特语字体的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.