level 1
看回首望去
楼主

Hardcoded string "TextView", should use @string resource Hardcoding text attributes directly in layout files is bad for several reasons: * When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes) * The application cannot be translated to other languages by just adding new translations for existing string resources. There are quickfixes to automatically extract this hardcoded string into a resource lookup. Issue id: HardcodedText解释硬编码字符串“textview”,应直接在布局文件中使用@string resource硬编码文本属性,原因有很多:*在创建配置变体(例如横向或纵向)时,必须重复实际文本(并在进行更改时使其保持最新状态)*应用程序无法转换为其他语言,只需为现有字符串资源添加新的翻译。有一些快速修复程序可以自动将此硬编码字符串提取到资源查找中。问题ID:硬文本,拖一个控件报一个错误