来自java源文件的Android Studio : can we directly edit string. xml?

标签 android android-studio

在编辑代码时,有时我们可能需要更改 strings.xml 中的字符串值,最快的方法是什么?

最佳答案

对于 Windows/Linux:

按住 Ctrl 并将鼠标悬停在 string 的引用上。它将创建一个链接,将您的光标带到 string.xml 文件 .

对于苹果机:

按住 Cmd 按钮并执行与上述相同的操作。

示例:enter image description here

关于来自java源文件的Android Studio : can we directly edit string. xml?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31008102/

相关文章:

java - 如何使用异步任务将文件上传到服务器?

android - Matrix.setLookAtM 方法在 OpenGL ES 中如何工作?

java - Android Studio 在 Windows 7 64 位上运行失败

android - 从 Activity 获取嵌套 fragment

android - 删除记录时Android崩溃

java - 字符串未设置为正确的值

android - 无法在 Ubuntu 中升级 Android Studio

java - 将jar文件导入flutter android插件并在android studio 3.6.1中使用

android - 尝试构建android应用程序包时出现"Uses reserved file or directory name ' lib '"错误

git - Android Studio 3.3.1中Github命令 "Update Project"和 "Pull"的区别?