ADT中出现类似这样的错误:[I18N] Hardcoded string "button", should use @string resource.
来源:互联网 发布:only淘宝代购是真的吗 编辑:程序博客网 时间:2024/06/16 02:17
ADT中出现类似这样的错误:[I18N] Hardcoded string "button", should use @string resource.
如上所述,这时你要将自己命名的button先存储在strings.xml中,然后使用strings.xml中的属性值代替button。
解决办法:(1)找到res\values\strings.xml文件,找到类似下面的语句;
(2)添加类似图片中语句即可,其中蓝体色name是属性,黑体字像MyPra、MyWindows是值。
(3)使用时向下面这样:@string/button1.
0 0
- ADT中出现类似这样的错误:[I18N] Hardcoded string "button", should use @string resource.
- Hardcoded string "Button", should use @string resource
- Hardcoded string "Button", should use @string resource
- !!:[I18N] Hardcoded string "Add", should use @string resource
- Hardcoded string "Button", should use @string resourc
- Hardcoded string "下一步", should use @string resource警告
- Hardcoded string "下一步", should use @string resource警告
- Hardcoded string 汉字, should use @string resource警告
- Hardcoded string XXX, should use @string resource警告
- Hardcoded string "XXXX", should use @string resource警告 解释
- Hardcoded string "下一步", should use @string resource警告
- “Hardcoded string "xxx", should use @string resource”警告
- 纯新手遇到 hardcoded string ... should use @string resource
- 【转】Hardcoded string XXX, should use @string resource警告
- Hardcoded string XXX, should use @string resource警告
- Hardcoded string "下一步", should use @string resource警告
- Warning:Hardcoded String"xxxx" should use @string resource
- Hardcoded string 汉字, should use @string resource警告
- Could not find schema properties file schema-image.json. Continuing wit hout custom properties
- IOS开发 - 在键盘上面添加可以跟随
- mysql 用户权限
- 理解 Android Build 系统
- Could not find s3_store_host in configuration options
- ADT中出现类似这样的错误:[I18N] Hardcoded string "button", should use @string resource.
- 用sae和wordpress搭建自己的博客
- 百度站长平台说要重视主动访问客户,您怎么看?
- QT的事件监控
- 深入分析Linux内核链表
- iptables-restore v1.4.12: host/network `None' not found
- FatMouse's Speed
- 关于hibernate的缓存使用
- fedora20安装nginx