下面是我的代码,我正在尝试使用 XML Parser DOM 将 Bold 设置为我的 XML 文件。谁能告诉我它是怎么做的?我只希望我的“标题:”是粗体的。
textview.setText(textview.getText() + "<b>Title :</b> " //This line
+ getValue("title", eElement) + "\n" + "\n");
textview.setText(textview.getText() + "Description : "
+ getValue("description", eElement) + "\n" + "\n");
textview.setText(textview.getText() + "Link : "
+ getValue("link", eElement) + "\n" + "\n");
textview.setText(textview.getText() + "Date : "
+ getValue("date", eElement) + "\n" + "\n" + "\n"
+ "\n");