aboutsummaryrefslogtreecommitdiffstats
path: root/java/res/xml/kbd_symbols.xml
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-12-08 14:36:41 +0900
committerTadashi G. Takaoka <takaoka@google.com>2010-12-08 17:43:29 +0900
commit9f01ed51d78d9a236d3c321a00ab74165a34630a (patch)
treed362ebc3f06430ed22adad666765daf5267a3ce8 /java/res/xml/kbd_symbols.xml
parent59cd73b91675a7a791e186ceb0fe73790ff9595b (diff)
downloadlatinime-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_symbols.xml')
-rw-r--r--java/res/xml/kbd_symbols.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/res/xml/kbd_symbols.xml b/java/res/xml/kbd_symbols.xml
index 7264179b9..a7da01151 100644
--- a/java/res/xml/kbd_symbols.xml
+++ b/java/res/xml/kbd_symbols.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="10%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" />