从布局xml文件的Andr​​oid提取字符串资源 [英] Android extract string resource from layout xml file

查看:276
本文介绍了从布局xml文件的Andr​​oid提取字符串资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从XML文件中提取硬codeD字符串,但是总是有一个错误。
选择硬codeD文本,按Ctrl + 1,提取的android字符串,这个错误弹出,而不是Android的提取字符串弹出。

I try to extract hardcoded strings from xml file but always got an error. Select hardcoded text, ctrl+1 , extract android string and this error pops instead of Android Extract String pop-up.

属性android:文本不接受一个字符串引用...

"The attribute android:text does not accept a string reference"...

为什么我得到这个错误任何提示?

Why do i get this error any tips?

我与Eclipse 3.7.1和ADT V16,Windows 7操作系统的工作。

I work with eclipse 3.7.1 and adt v16, operating system windows 7.

这是错误

增加了视频显示功能
http://www.youtube.com/watch?feature=player_embedded&v=Oq05KqjXTvs#t=1881s

推荐答案

我刚刚找到如何激活此功能。

I just found how to activate this feature.

只需preSS CRTL + 1并在菜单会弹出。

Simply press "crtl+1" and the menu will pop out.

我在寻找这个功能太,直到我发现您的文章....

I was searching for this feature too until i found your post....

谢谢你的视频了。

这篇关于从布局xml文件的Andr​​oid提取字符串资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆