Android开发之占位符应用实例解析
程序员文章站
2023-12-23 21:14:51
带颜色:
带颜色:
<string name="wait_num"><data><![cdata[您前面还有<font color="#3b77f6">%1$s</font>位用户]]></data></string> <string name="wait_time"><data><![cdata[等待时长 <font color="#3b77f6">%1$s</font>]]></data></string> mnumview.settext(html.fromhtml(stringutil.getnotnullstring(context.getstring(r.string.wait_num))); <string name="group_and_mem_info_count_fmt">%1$d小组,%2$d人</string> <string name="version_update_notification_ticker_text">正在下载新版本, 请稍候…</string> <string name="version_update_notification_content">%1$s版本下载中, 请稍候…</string> public static final string studies_report = "/rest/reportcard/report/studies/%1$s?groupid=%2$s"; public final static string base_url = "https://%1$s:%2$d/anychatfacexclient"; string url = string.format(get_room_id + "?loanappno=" + contractid, serverip, serverport);