Android 键盘 "Show correction suggestions"
Android Keyboard "Show correction suggestions"
我正在尝试以编程方式将语言和输入设置中的默认值 "Show correction suggestions" 从 "Always show" 设置为 "Always hide"。如果我能从 AOSP 代码本身获得一些关于如何进行此更改的指示,我将不胜感激。
导航至 packages\inputmethods\LatinIme\javaj\res\values\donottranslate.xml
<字符串名称="prefs_suggestion_visibility_show_value">0字符串>
<字符串名称="prefs_suggestion_visibility_show_only_portrait_value">1
<字符串名称="prefs_suggestion_visibility_hide_value">2字符串>
查找此条目;
1
将 1 替换为您想要的任何偏好值
我正在尝试以编程方式将语言和输入设置中的默认值 "Show correction suggestions" 从 "Always show" 设置为 "Always hide"。如果我能从 AOSP 代码本身获得一些关于如何进行此更改的指示,我将不胜感激。
导航至 packages\inputmethods\LatinIme\javaj\res\values\donottranslate.xml
<字符串名称="prefs_suggestion_visibility_show_value">0字符串>
<字符串名称="prefs_suggestion_visibility_show_only_portrait_value">1
<字符串名称="prefs_suggestion_visibility_hide_value">2字符串>
查找此条目;
将 1 替换为您想要的任何偏好值