欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

Android开发之占位符应用实例解析

程序员文章站 2022-10-26 12:36:23
带颜色:

带颜色:

<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">正在下载新版本,&#160;请稍候&#8230;</string>
<string name="version_update_notification_content">%1$s版本下载中,&#160;请稍候&#8230;</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);