layout :
<resources>
<string name="address_to_is">
<![CDATA[
到 : <font color=#7E7E7E><b>%1$s</b></font>
]]>
</string>
</resources>
java :
// initial address_to
String addressTo = context.getString(R.string.address_to_is);
addressTo = String.format(addressTo, getNameString);
addressTo.setText(Html.fromHtml(addressTo));
沒有留言:
張貼留言