diff options
-rw-r--r-- | api/current.xml | 11 | ||||
-rw-r--r-- | core/java/android/text/InputType.java | 9 | ||||
-rw-r--r-- | core/res/res/values/attrs.xml | 5 |
3 files changed, 25 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml index d6db119..448da7c 100644 --- a/api/current.xml +++ b/api/current.xml @@ -129444,6 +129444,17 @@ visibility="public" > </field> +<field name="TYPE_TEXT_FLAG_NO_SUGGESTIONS" + type="int" + transient="false" + volatile="false" + value="524288" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="TYPE_TEXT_VARIATION_EMAIL_ADDRESS" type="int" transient="false" diff --git a/core/java/android/text/InputType.java b/core/java/android/text/InputType.java index d50684a..14b8308 100644 --- a/core/java/android/text/InputType.java +++ b/core/java/android/text/InputType.java @@ -128,6 +128,15 @@ public interface InputType { */ public static final int TYPE_TEXT_FLAG_IME_MULTI_LINE = 0x00040000; + /** + * Flag for {@link #TYPE_CLASS_TEXT}: the input method does not need to + * display any dictionary-based candidates. This is useful for text views that + * do not contain words from the language and do not benefit from any + * dictionary-based completions or corrections. It overrides the + * {@link #TYPE_TEXT_FLAG_AUTO_CORRECT} value when set. + */ + public static final int TYPE_TEXT_FLAG_NO_SUGGESTIONS = 0x00080000; + // ---------------------------------------------------------------------- /** diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index a1a179b..eae838a 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -530,6 +530,11 @@ lines, the IME should provide multiple lines if it can. Corresponds to {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. --> <flag name="textImeMultiLine" value="0x00040001" /> + <!-- Can be combined with <var>text</var> and its variations to + indicate that the IME should not show any + dictionary-based word suggestions. Corresponds to + {@link android.text.InputType#TYPE_TEXT_FLAG_NO_SUGGESTIONS}. --> + <flag name="textNoSuggestions" value="0x00080001" /> <!-- Text that will be used as a URI. Corresponds to {@link android.text.InputType#TYPE_CLASS_TEXT} | {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. --> |