如何在Android字符串资源文件中添加撇号? 嗨! 我正在尝试在android字符串中添加撇号(')
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Stack's Answers</string>
</resources>
答案 0 :(得分:1)
尝试:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Stack\'s Answers</string>
</resources>
你必须逃避html
答案 1 :(得分:0)
试试这种方式..
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Stack\'s Answers</string>
</resources>