am 12cc9d82: Add a new flag for IMEs to disable suggestions for certain fields.

Merge commit '12cc9d82a6f3bd2aebad8ed97a29e2cbad3ec77a' into eclair-plus-aosp

* commit '12cc9d82a6f3bd2aebad8ed97a29e2cbad3ec77a':
  Add a new flag for IMEs to disable suggestions for certain fields.
This commit is contained in:
Amith Yamasani
2009-09-17 08:44:53 -07:00
committed by Android Git Automerger
3 changed files with 25 additions and 0 deletions

View File

@@ -129444,6 +129444,17 @@
visibility="public" visibility="public"
> >
</field> </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" <field name="TYPE_TEXT_VARIATION_EMAIL_ADDRESS"
type="int" type="int"
transient="false" transient="false"

View File

@@ -146,6 +146,15 @@ public interface InputType {
*/ */
public static final int TYPE_TEXT_FLAG_IME_MULTI_LINE = 0x00040000; 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;
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
/** /**

View File

@@ -530,6 +530,11 @@
lines, the IME should provide multiple lines if it can. Corresponds to lines, the IME should provide multiple lines if it can. Corresponds to
{@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. --> {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. -->
<flag name="textImeMultiLine" value="0x00040001" /> <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 <!-- Text that will be used as a URI. Corresponds to
{@link android.text.InputType#TYPE_CLASS_TEXT} | {@link android.text.InputType#TYPE_CLASS_TEXT} |
{@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. --> {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. -->