【问题标题】:Want to display data in Indian Regional language(Telugu,Hindi,Tamil and Malayalam) from RSSFeed in android? [closed]想要在 android 中显示来自 RSSFeed 的印度地区语言(泰卢固语、印地语、泰米尔语和马拉雅拉姆语)的数据? [关闭]
【发布时间】:2012-10-08 23:28:36
【问题描述】:

我正在为报纸开发应用程序。我想从 RSSfeed 获取数据,并且想以 ListView 方式使用区域语言显示数据。这在android中怎么做?

【问题讨论】:

    标签: android android-intent indic


    【解决方案1】:

    您需要为一种语言使用特定的字体。检查此custom font in android ListView


    TextView自定义字体设置代码:

    假设您在 assets 文件夹下的 fonts 文件夹中有 your_font.ttf 字体:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多