我想将我的模拟器语言环境设置为印度语区域语言的一些自定义语言环境,如泰米尔语或加拿大语或泰卢固语.任何一个plz给出建议,在此先感谢.
我有一个字符串定义string.xml类似
<string name="eventtitle">Title: %1$s </string>
Run Code Online (Sandbox Code Playgroud)
使用格式化string.format.如何定义字符串只获得Titel:如Bold.
在此先感谢您的帮助
我需要在我的应用程序中显示马拉地语文本.其实我知道这个程序.我用过这段代码:
Typeface font = Typeface.createFromAsset(getAssets(), "Marathi-Saras.TTF");
userNameTxt.setTypeface(font);
userNameTxt.setText("Marathi");
Run Code Online (Sandbox Code Playgroud)
但这是硬编码和有限的.实际上我想要显示的网络服务数据包含一些马拉地语和英语数据.每当马拉地数据出现时,它只显示盒子.这里我的输出看起来像这样:

任何人都可以知道我应该做什么,以便我可以用马拉地语形式显示数据.提前致谢
这是我的代码:XMLHandler类
package com.app.unipune.announcements.parserHandler;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import android.text.Html;
public class AnnouncementHandler extends DefaultHandler {
public static ItemList itemList;
public boolean current = false;
public String currentValue = null;
@Override
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
current = true;
if (localName.equals("channel")) {
itemList = new ItemList();
}
}
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
current …Run Code Online (Sandbox Code Playgroud)