diff options
Diffstat (limited to 'core/res')
-rwxr-xr-x | core/res/res/values/attrs.xml | 22 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 4362c04..4fb3039 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1550,6 +1550,28 @@ <attr name="isDefault" format="boolean" /> </declare-styleable> + <!-- This is the subtype of InputMethod. Subtype can describe locales (e.g. en_US, fr_FR...) + and modes (e.g. voice, keyboard...), and is used for IME switch. This subtype allows + the system to call the specified subtype of the IME directly. --> + <declare-styleable name="InputMethod_Subtype"> + <!-- The name of the subtype. --> + <attr name="label" /> + <!-- The icon of the subtype. --> + <attr name="icon" /> + <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...) + and will be passed to the IME when the framework calls the IME + with the subtype. This is also used by the framework to know the supported locales + of the IME. --> + <attr name="imeSubtypeLocale" format="string" /> + <!-- The mode of the subtype. This string can be a mode (e.g. voice, keyboard...) and this + string will be passed to the IME when the framework calls the IME with the + subtype. --> + <attr name="imeSubtypeMode" format="string" /> + <!-- The extra value of the subtype. This string can be any string and will be passed to + the IME when the framework calls the IME with the subtype. --> + <attr name="imeSubtypeExtraValue" format="string" /> + </declare-styleable> + <!-- =============================== --> <!-- Widget package class attributes --> <!-- =============================== --> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index f413a12..6aca361 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1321,6 +1321,9 @@ <public type="attr" name="fragmentCloseEnterAnimation" /> <public type="attr" name="fragmentCloseExitAnimation" /> <public type="attr" name="windowActionBarSize" /> + <public type="attr" name="imeSubtypeLocale" /> + <public type="attr" name="imeSubtypeMode" /> + <public type="attr" name="imeSubtypeExtraValue" /> <public type="anim" name="animator_fade_in" /> <public type="anim" name="animator_fade_out" /> |