开发者

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

开发者 https://www.devze.com 2023-03-09 21:35 出处:网络
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 te

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

精彩评论

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

关注公众号