不要外向化字符串需要在strings.xml中? [英] Do externalized strings need to be in strings.xml?

查看:185
本文介绍了不要外向化字符串需要在strings.xml中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的Eclipse项目上单击右键,选择外部化字符串向导最终把串在新的messges.properties的文件;它不应该去/res/values​​/strings.xml,或者有什么关系?

When I right-click on my project in Eclipse, and select "Externalize Strings" the wizard ends up putting the strings in a new "messges.properties" file; shouldn't it go in /res/values/strings.xml, or does it matter?

推荐答案

外部化字符串是在Eclipse实现使用Java的工作标准功能。如果要提取Android的字符串,你应该只需选择字符串,preSS CTRL + 1,并在出现的菜单中选择提取字符串接近此选项Android的图片。

"Externalize Strings" is a standard functionality that is implemented in eclipse to work with java. If you want to extract Android string you should simply select the string, press ctrl+1 and in the appeared menu choose "Extract String" with the Android picture near this option.

这篇关于不要外向化字符串需要在strings.xml中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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