diff options
author | 2010-12-08 14:36:41 +0900 | |
---|---|---|
committer | 2010-12-08 17:43:29 +0900 | |
commit | 9f01ed51d78d9a236d3c321a00ab74165a34630a (patch) | |
tree | d362ebc3f06430ed22adad666765daf5267a3ce8 /java/res/xml/kbd_number.xml | |
parent | 59cd73b91675a7a791e186ceb0fe73790ff9595b (diff) | |
download | latinime-9f01ed51d78d9a236d3c321a00ab74165a34630a.tar.gz latinime-9f01ed51d78d9a236d3c321a00ab74165a34630a.tar.xz latinime-9f01ed51d78d9a236d3c321a00ab74165a34630a.zip |
Support keyboardHeight and maxKeyboardHeight to Keyboard XML
This change introduces,
- new attribute keyboardHeight to specify default keyboard height.
- new attribute maxKeyboardHeight to specify maximum keyboard height,
usually specified by percentage to the screen height.
- keyHeight attribute is obsoleted
- new attribute rowHeight to specify a row height, can be specifed as
percentage of the keyboard height. And verticalGap is included to
the row height (row height = key height + vertical gap).
Change-Id: I48a2f2661e8a91a998503a847437c1baf1de9b9c
Diffstat (limited to 'java/res/xml/kbd_number.xml')
-rw-r--r-- | java/res/xml/kbd_number.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/res/xml/kbd_number.xml b/java/res/xml/kbd_number.xml index cde7205bc..f09da8683 100644 --- a/java/res/xml/kbd_number.xml +++ b/java/res/xml/kbd_number.xml @@ -20,10 +20,12 @@ <Keyboard xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" + latin:keyboardHeight="@dimen/keyboardHeight" + latin:maxKeyboardHeight="50%p" + latin:rowHeight="25%p" latin:keyWidth="26.67%p" latin:horizontalGap="@dimen/key_horizontal_gap" latin:verticalGap="@dimen/key_bottom_gap" - latin:keyHeight="@dimen/key_height" > <include latin:keyboardLayout="@xml/kbd_key_styles" /> |