小白的android stdio项目开发历程,should use @string resource警告
在android stdio项目开发中使用Design时直接在text项键入文本,出现should use @string resource警告。
解决方法:
在res/values/strings.xml中设置
<string name="nav_header_title">你要键入的文字</string>
在text中填入设置好的变量,如
@string/nav_he...
原创
2018-10-13 15:52:35 ·
1079 阅读 ·
0 评论