aboutsummaryrefslogtreecommitdiffstats
path: root/java/res/xml-iw
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-05-27 02:38:11 +0900
committerTadashi G. Takaoka <takaoka@google.com>2011-05-28 10:01:00 +0900
commit6b38a5fd4c7697c962bff9f3964f20e00c470b1b (patch)
tree786bf8c17d5d8cbd86615af31712f3421a216c9b /java/res/xml-iw
parentec8cb2eb53ae8fdc45c51cf58b01384161901b97 (diff)
downloadlatinime-6b38a5fd4c7697c962bff9f3964f20e00c470b1b.tar.gz
latinime-6b38a5fd4c7697c962bff9f3964f20e00c470b1b.tar.xz
latinime-6b38a5fd4c7697c962bff9f3964f20e00c470b1b.zip
Adaptive keyboard width/position parser (DO NOT MERGE)
This change introduces the following features to Keyboard XML format. * "keyXPos" can specify the key X coordinate directly. * "keyXPos" can be negative. The X coordinate will be calcluated from the right edge of the keyboard toward left. * "keyWidth" can be zero to be filled up to the right side. * "keyWidth can be negative. The key will be filled up to both sides. * Spacer's horizontalGap is renamed as keyWidth, and can be inherited from key-style. * Spacer can have keyXPos attribute. Using these syntax, all keyboard layouts have been re-written. Bug: 4442045 Change-Id: I314b2e8ca2aa145ff9506cbf927140a15685af42
Diffstat (limited to 'java/res/xml-iw')
-rw-r--r--java/res/xml-iw/kbd_qwerty.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/res/xml-iw/kbd_qwerty.xml b/java/res/xml-iw/kbd_qwerty.xml
index 98bfd7e0b..6c2504e65 100644
--- a/java/res/xml-iw/kbd_qwerty.xml
+++ b/java/res/xml-iw/kbd_qwerty.xml
@@ -35,7 +35,7 @@
latin:rowEdgeFlags="top"
>
<Spacer
- latin:horizontalGap="5%p" />
+ latin:keyWidth="5%p" />
<Key
latin:keyLabel="ק"
latin:keyEdgeFlags="left" />
@@ -54,7 +54,7 @@
<Key
latin:keyLabel="פ" />
<Spacer
- latin:horizontalGap="1.25%p" />
+ latin:keyWidth="1.25%p" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="13.75%p"
@@ -86,7 +86,7 @@
</Row>
<Row>
<Spacer
- latin:horizontalGap="5%p" />
+ latin:keyWidth="5%p" />
<Key
latin:keyLabel="ז"
latin:keyEdgeFlags="left" />