Android的发现code采用了Android Studio的所有硬盘codeD字符串 [英] Android find all hardcoded strings in code using Android Studio

查看:203
本文介绍了Android的发现code采用了Android Studio的所有硬盘codeD字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到我的code中所有硬件codeD字符串将其移动到的strings.xml 文件为未来的本地化。如:

I want to find all hard-coded strings in my code to move them into strings.xml file for future localization. Such as :

Toast.makeText(context,"Hardcoded text",LENGTH_SHORT).show();

我使用Android工作室。

I using Android Studio.

推荐答案

<一个href=\"http://stackoverflow.com/questions/25043809/how-can-i-find-all-hard-$c$cd-strings-in-my-project-in-android-studio\">This答案没有得到我的任何结果。

This answer not getting to me any result.

不过,对于未来的搜索:

Nonetheless, for future searches :

在Android的工作室1.2.2增加了新的硬codeD字符串(不是硬codeD文字),这让我完美的搜索结果。

In Android Studio 1.2.2 added new Option Hardcoded strings(not a Hardcoded text) and this getting to me perfect searches result.

这篇关于Android的发现code采用了Android Studio的所有硬盘codeD字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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