2017-03-16 128 views
-1

如何在Android字符串資源文件中添加撇號? 嗨! 我想在Android的字符串帶有撇號的Android字符串

<?xml version="1.0" encoding="utf-8"?> 
<resources> 
    <string name="app_name">Stack's Answers</string> 
</resources> 

回答

0

加引號(')試試這個方式..

<?xml version="1.0" encoding="utf-8"?> 
<resources> 
    <string name="app_name">Stack\'s Answers</string> 
</resources> 
1

嘗試:

<?xml version="1.0" encoding="utf-8"?> 
<resources> 
    <string name="app_name">Stack\'s Answers</string> 
</resources> 

你必須逃脫html

相關問題