Add a new flag for IMEs to disable suggestions for certain fields.
This commit is contained in:
@ -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"
|
||||
|
@ -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;
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
|
@ -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}. -->
|
||||
|
Reference in New Issue
Block a user