[英]Java android Multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?
我想在TextView中删除一个文本:这是我在字符串中的值:
<string name="coords2">Lat: %1$.2f %c\nLon: %2$.2f\n(%3$.0fm)</string>
但是当我构建一个apk时,我看到了这个:
Error:(764) Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
Error:(764) Unexpected end tag string
您好您可以使用此打印该字符
TextView tvIn;
String spcialCharacter="Lat: %1$.2f %c\\nLon: %2$.2f\\n(%3$.0fm)";
tvIn=(TextView)findViewById(R.id.tvIn);
tvIn.setText(Html.fromHtml(spcialCharacter));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.