[英]android does not display “” inside TextView?
i am trying to display STRING my car name is "abc" in textview. 我试图在textview中显示STRING 我的车名是“abc” 。
it displays &qoute;abc&qoute; 它显示&qoute; abc&qoute; after running application.
运行应用程序后。
i have tried decoding into " and then assigning it to TextView but it always convert " to &qoute; 我已尝试解码为“然后将其分配给TextView但它总是转换为”&qoute;
can any one guide me how to solve this issue? 任何人都可以指导我如何解决这个问题?
any help would be appriciated. 任何帮助都会得到满足。
I have done it escaping the "
我做到了逃避
"
Example: 例:
<string name="pref_about_text">Estado del Tránsito versión \"%s\"\nCreado por:</string>
Escape them; 逃避他们; use
"
使用
"
to have quotes in XML values. 在XML值中有引号。
For eg try: android:text="" hi ""
例如,尝试:
android:text="" hi ""
For me none of the solutions presented here earlier did not worked. 对我来说,前面提到的解决方案都没有奏效。
Sharing my method to do this: 分享我的方法来做到这一点:
<string name="filter">\"Filtruj\"</string>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.