想在安卓的RSSFeed中显示印度区域语言(泰卢固语,印地文,泰米尔语和马拉雅拉姆语)的数据?泰米尔、印度、拉姆、马拉

2023-09-07 13:14:06 作者:没人喜欢我

我开发的报纸应用程序。我想从一个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);