diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-04-05 11:49:26 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-04-05 14:42:10 -0700 |
commit | 9df6e7a926ce480baf70e97ee1b9ea387193f6ad (patch) | |
tree | dfe752a296e934467d76d6727b687a8fc8fad586 /core/res | |
parent | dedf1b2727556223aafcebba1a567ffa816412d2 (diff) | |
download | frameworks_base-9df6e7a926ce480baf70e97ee1b9ea387193f6ad.zip frameworks_base-9df6e7a926ce480baf70e97ee1b9ea387193f6ad.tar.gz frameworks_base-9df6e7a926ce480baf70e97ee1b9ea387193f6ad.tar.bz2 |
Initial commit of InputManager and keyboard layout API.
Added a new InputManager service for interacting with input
devices and configuring them. This will be the focus of
an upcoming refactoring.
Added an API for registering keyboard layouts with the system
based on the use of a broadcast receiver. Applications can
register their own keyboard layouts simply by declaring a
broadcast receiver in their manifests.
Added the skeleton of a package that will ultimately contain
the keyboard layouts and other input device related resources
that are part of the base system.
Bug: 6110399
Change-Id: Ie01b0ef4adbd5198f6f012e73964bdef3c51805c
Diffstat (limited to 'core/res')
-rwxr-xr-x | core/res/res/values/attrs.xml | 17 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 438c141..b9cc751 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -5528,4 +5528,21 @@ <attr name="settingsActivity" /> </declare-styleable> + <!-- Use <code>keyboard-layouts</code> as the root tag of the XML resource that + describes a collection of keyboard layouts provided by an application. + Each keyboard layout is declared by a <code>keyboard-layout</code> tag + with these attributes. + + The XML resource that contains the keyboard layouts must be referenced from its + {@link android.hardware.input.InputManager#META_DATA_KEYBOARD_LAYOUTS} + meta-data entry used with broadcast receivers for + {@link android.hardware.input.InputManager#ACTION_QUERY_KEYBOARD_LAYOUTS}. --> + <declare-styleable name="KeyboardLayout"> + <!-- The name of the keyboard layout, must be unique in the receiver. --> + <attr name="name" /> + <!-- The display label of the keyboard layout. --> + <attr name="label" /> + <!-- The key character map file resource. --> + <attr name="kcm" format="reference" /> + </declare-styleable> </resources> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 9f29630..b003b00 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -3560,5 +3560,6 @@ <public type="attr" name="layout_marginStart"/> <public type="attr" name="layout_marginEnd"/> + <public type="attr" name="kcm"/> </resources> |