【发布时间】:2021-10-07 05:29:33
【问题描述】:
所以这很好用:
strFoo = "\u20B9" + strBar
但这不是
strFoo = R.string.rupee_symbol.toString() + strBar //.toString() is required
//R.string.rupee_symbol.toString() evaluates to some random number 2131755148... which I believe is a character array...
字符串.xml
<string name="rupee_symbol">\u20B9 </string>
我不明白它为什么会这样,它看起来像一样的东西......!
【问题讨论】:
标签: android string kotlin symbols