开发者

how to write punjabi language text in our application of android?

hi I am going to start an application in android. But i want the text should be written in Pun开发者_开发问答jabi language in the Text view but while i am copying the Punjabi text and paste it into text view(widget) it will display nothing on the Emulator. So, please give me any suggestion so that i am able to write Punjabi language in the text view of android.

Thanks in advance.


Try this:

Typeface fontStyle = Typeface.createFromAsset(getAssets(), "bulara_5.ttf");  
text.setTypeface(fontStyle);  
text.setText("ਪੰਜਾਬੀ");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜