Want to display data in Indian Regional language(Telugu,Hindi,Tamil and Malayalam) from RSSFeed in android? [closed]

让人想犯罪 __ 提交于 2020-01-21 12:08:39

问题


I am developing an application for newspaper. I want to get the data from a RSSfeed and I want to display the data in a ListView manner with Regional Languages. How can this be done in android?


回答1:


You need to use specific font for a language. Check this for custom font in android ListView


Code for setting custom font to TextView:

Assuming you have the your_font.ttf font in fonts folder under assets folder:

 Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/your_font.ttf");               
    TextView tv = (TextView) findViewById(R.id.CustomFontText);
    tv.setTypeface(tf);


来源:https://stackoverflow.com/questions/10687653/want-to-display-data-in-indian-regional-languagetelugu-hindi-tamil-and-malayala

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!