问题
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