Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在特定于语言的strings.xml文件上启用Android Studio拼写检查_Android_Android Studio - Fatal编程技术网

在特定于语言的strings.xml文件上启用Android Studio拼写检查

在特定于语言的strings.xml文件上启用Android Studio拼写检查,android,android-studio,Android,Android Studio,在Android Studio中,针对特定语言的strings.xml文件似乎禁用了拼写检查(我理解为什么默认情况下会禁用拼写检查) 但是,有可能为其中的几个文件启用它,检查值吗?(“fr/strings.xml”为例),或者至少按需运行它。是,请转到Android Studio首选项>编辑器>检查>拼写>打字(选中该框)。还要确保选择了所有作用域 字符串文件中不正确的拼写会显示一条浅绿色的线,单击该线会显示一条消息,说明可能是拼写错误。要避免或强制拼写检查,可以在字符串xml中的标记中添加工具

在Android Studio中,针对特定语言的strings.xml文件似乎禁用了拼写检查(我理解为什么默认情况下会禁用拼写检查)


但是,有可能为其中的几个文件启用它,检查值吗?(“fr/strings.xml”为例),或者至少按需运行它。

是,请转到Android Studio首选项>编辑器>检查>拼写>打字(选中该框)。还要确保选择了所有作用域


字符串文件中不正确的拼写会显示一条浅绿色的线,单击该线会显示一条消息,说明可能是拼写错误。

要避免或强制拼写检查,可以在字符串xml中的
标记中添加
工具:locale

<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en">

这会告诉Lint您的资源的区域设置


来源:

是的,我的错,当被问到时,我在fr/strings.xml文件上,它已经适用于strings.xml,但不适用于特定语言的文件。我编辑了我的问题这是一个好问题。我在Android Studio中找不到任何允许您使用特定语言拼写检查特定文件的功能。如果您解决了这个问题,请告诉我。这不会对特定于区域设置的资源文件启用拼写检查