2012-05-13 22 views
5

如果我嘗試做這樣的事情,這是行不通的...... (空字符串或沒有資源類型錯誤)特殊字符(@,η)爲Android應用XML字符串

<string name="random">?</string> 
<string name="random">@</string> 

我也試過html實體變種

<string name="random">&#63;</string> 

任何想法如何使用「?」和「@」作爲android中的字符串資源?

回答

2

這是爲我工作:

<string name="twitter_hint">"@"twitter</string> 
+0

這並不提供答案的問題。一旦你有足夠的[聲譽](https://stackoverflow.com/help/whats-reputation),你將可以[對任何帖子發表評論](https://stackoverflow.com/help/privileges/comment);相反,[提供不需要提問者澄清的答案](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-c​​an- I-DO-代替)。 - [來自評論](/ review/low-quality-posts/18112267) –

+0

AnshulParashar嘗試「\ @ twitter」 Gautam