我开发的报纸应用程序。我想从一个RSSFeed中的数据,我想显示在ListView的方式与地区语言数据。如何在Android中这样做?
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?
您需要使用特定的字体的语言。检查本作在Android的ListView的 自定义字体
You need to use specific font for a language. Check this for custom font in android ListView
假设你有 your_font.ttf 字体中的字体文件夹下的资产文件夹:
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);