diff options
author | satok <satok@google.com> | 2010-08-04 18:26:42 +0900 |
---|---|---|
committer | satok <satok@google.com> | 2010-08-18 19:19:00 +0900 |
commit | 7eb84256e57ce85bece610e6a01e20fa12e0f3fe (patch) | |
tree | ef135210398592cd550f27df891594df9a771e35 /core/res | |
parent | 2b6a68580b699c4d9285d20bcfa942384cf81678 (diff) | |
download | frameworks_base-7eb84256e57ce85bece610e6a01e20fa12e0f3fe.zip frameworks_base-7eb84256e57ce85bece610e6a01e20fa12e0f3fe.tar.gz frameworks_base-7eb84256e57ce85bece610e6a01e20fa12e0f3fe.tar.bz2 |
Enhancement of method.xml for Fast IME switching
- (Public API) Add public attrs: imeSubtypeExtraValue, imeSubtypeLanguage, imeSubtypeMode
-- (Public API) Add InputMethodSubtype class
-- (Public API) Add getSubtypes to InputMethodInfo
- Add parser for the enhanced method.xml
Change-Id: Ie7965fd29fd9615ef9c9418075c9f5f1c3365eb6
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" /> |