在布局文件中,文本的设置使用如下写法时会有警告:Hardcoded string "下一步",should use @string resource
copy
在布局文件中,文本的设置使用如下写法时会有警告:Hardcoded string "下一步",should use @string resource
android:text="@string/message"就行了。这样做可以做到一改全改,在支持多语言时也是很有用的。另外,颜色的设置也最好在color.xm中类似设置。