Update xlarge drawable of Keyboard

Bug: 3109804
Change-Id: I316f9cfcec377a7d0ea1417e1e3cea55cbdb9e2b
main
Tadashi G. Takaoka 2010-10-19 17:08:54 +09:00
parent fc137771d6
commit 58bfa35072
74 changed files with 297 additions and 175 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- TODO: Remove "gingerbread" from file name and rename this to "btn_keyboard_key.xml". -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Functional keys. -->
<item android:state_single="true" android:state_pressed="true"
android:drawable="@drawable/btn_keyboard_key_dark_pressed_holo" />
<item android:state_single="true"
android:drawable="@drawable/btn_keyboard_key_dark_normal_holo" />
<!-- Toggle keys. Use checkable/checked state. -->
<item android:state_checkable="true" android:state_checked="true" android:state_pressed="true"
android:drawable="@drawable/btn_keyboard_key_dark_pressed_on_holo" />
<item android:state_checkable="true" android:state_pressed="true"
android:drawable="@drawable/btn_keyboard_key_dark_pressed_off_holo" />
<item android:state_checkable="true" android:state_checked="true"
android:drawable="@drawable/btn_keyboard_key_dark_normal_on_holo" />
<item android:state_checkable="true"
android:drawable="@drawable/btn_keyboard_key_dark_normal_off_holo" />
<!-- Normal keys -->
<item android:state_pressed="true"
android:drawable="@drawable/btn_keyboard_key_light_pressed_holo" />
<item android:drawable="@drawable/btn_keyboard_key_light_normal_holo" />
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -21,7 +21,8 @@
<resources> <resources>
<!-- key_height + key_bottom_gap = popup_key_height --> <!-- key_height + key_bottom_gap = popup_key_height -->
<dimen name="key_height">0.450in</dimen> <dimen name="key_height">0.450in</dimen>
<dimen name="key_bottom_gap">0.0in</dimen> <dimen name="key_bottom_gap">0.03in</dimen>
<dimen name="key_horizontal_gap">0.03in</dimen>
<dimen name="popup_key_height">0.450in</dimen> <dimen name="popup_key_height">0.450in</dimen>
<dimen name="keyboard_bottom_padding">0.10in</dimen> <dimen name="keyboard_bottom_padding">0.10in</dimen>
<!-- key_height x 1.6 --> <!-- key_height x 1.6 -->

View File

@ -22,6 +22,7 @@
<!-- key_height + key_bottom_gap = popup_key_height --> <!-- key_height + key_bottom_gap = popup_key_height -->
<dimen name="key_height">0.290in</dimen> <dimen name="key_height">0.290in</dimen>
<dimen name="key_bottom_gap">0.035in</dimen> <dimen name="key_bottom_gap">0.035in</dimen>
<dimen name="key_horizontal_gap">0.000in</dimen>
<dimen name="popup_key_height">0.325in</dimen> <dimen name="popup_key_height">0.325in</dimen>
<dimen name="keyboard_bottom_padding">0.06in</dimen> <dimen name="keyboard_bottom_padding">0.06in</dimen>
<!-- key_height x 1.6 --> <!-- key_height x 1.6 -->

View File

@ -27,7 +27,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -27,7 +27,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
@ -82,11 +82,12 @@
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
<Row> <Row>
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="a" latin:keyLabel="a"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_a" latin:popupCharacters="@string/alternates_for_a"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="s" latin:keyLabel="s"

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
@ -82,11 +82,12 @@
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
<Row> <Row>
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="a" latin:keyLabel="a"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_a" latin:popupCharacters="@string/alternates_for_a"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="s" latin:keyLabel="s"

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,16 +21,17 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
<Row <Row
latin:rowEdgeFlags="top" latin:rowEdgeFlags="top"
> >
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="ק" latin:keyLabel="ק"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="ר" /> latin:keyLabel="ר" />
@ -46,13 +47,14 @@
latin:keyLabel="ם" /> latin:keyLabel="ם" />
<Key <Key
latin:keyLabel="פ" /> latin:keyLabel="פ" />
<Spacer
latin:horizontalGap="1.25%p" />
<Key <Key
latin:codes="@integer/key_delete" latin:codes="@integer/key_delete"
latin:keyIcon="@drawable/sym_keyboard_delete" latin:keyIcon="@drawable/sym_keyboard_delete"
latin:iconPreview="@drawable/sym_keyboard_feedback_delete" latin:iconPreview="@drawable/sym_keyboard_feedback_delete"
latin:keyWidth="13.75%p" latin:keyWidth="13.75%p"
latin:isModifier="true" latin:isModifier="true"
latin:horizontalGap="1.25%p"
latin:isRepeatable="true" latin:isRepeatable="true"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
@ -81,9 +83,10 @@
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
<Row> <Row>
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="ז" latin:keyLabel="ז"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="ס" /> latin:keyLabel="ס" />

View File

@ -21,16 +21,17 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
<Row <Row
latin:rowEdgeFlags="top" latin:rowEdgeFlags="top"
> >
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="ק" latin:keyLabel="ק"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="ר" /> latin:keyLabel="ר" />
@ -46,12 +47,13 @@
latin:keyLabel="ם" /> latin:keyLabel="ם" />
<Key <Key
latin:keyLabel="פ" /> latin:keyLabel="פ" />
<Spacer
latin:horizontalGap="1.25%p" />
<Key <Key
latin:codes="@integer/key_delete" latin:codes="@integer/key_delete"
latin:keyIcon="@drawable/sym_bkeyboard_delete" latin:keyIcon="@drawable/sym_bkeyboard_delete"
latin:iconPreview="@drawable/sym_keyboard_feedback_delete" latin:iconPreview="@drawable/sym_keyboard_feedback_delete"
latin:keyWidth="13.75%p" latin:keyWidth="13.75%p"
latin:horizontalGap="1.25%p"
latin:isRepeatable="true" latin:isRepeatable="true"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
@ -80,9 +82,10 @@
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
<Row> <Row>
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="ז" latin:keyLabel="ז"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="ס" /> latin:keyLabel="ס" />

View File

@ -27,7 +27,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -27,7 +27,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -20,8 +20,8 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.091%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -22,7 +22,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -22,7 +22,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -29,7 +29,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -29,7 +29,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="9.09%p" latin:keyWidth="9.09%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,8 +21,8 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="7.5%p" latin:keyWidth="7.5%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="0px" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
<!-- This row is intentionally not marked as a top row --> <!-- This row is intentionally not marked as a top row -->
@ -35,29 +35,35 @@
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<!-- To match one character label size with "Tab", I placed spaces around the char '-' <!-- To match one character label size with "Tab", I placed spaces around the char '-'
and '+'. --> and '+'. -->
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="45" latin:codes="45"
latin:keyLabel=" - " latin:keyLabel=" - " />
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="43" latin:codes="43"
latin:keyLabel=" + " /> latin:keyLabel=" + " />
<Spacer
latin:horizontalGap="11.5%p" />
<Key <Key
latin:codes="49" latin:codes="49"
latin:keyIcon="@drawable/sym_keyboard_num1" latin:keyIcon="@drawable/sym_keyboard_num1"
latin:horizontalGap="11.5%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="50" latin:codes="50"
latin:keyIcon="@drawable/sym_keyboard_num2" /> latin:keyIcon="@drawable/sym_keyboard_num2"
latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="51" latin:codes="51"
latin:keyIcon="@drawable/sym_keyboard_num3" /> latin:keyIcon="@drawable/sym_keyboard_num3"
latin:keyWidth="10.5%p " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="@integer/key_delete" latin:codes="@integer/key_delete"
latin:keyIcon="@drawable/sym_keyboard_delete" latin:keyIcon="@drawable/sym_keyboard_delete"
latin:iconPreview="@drawable/sym_keyboard_feedback_delete" latin:iconPreview="@drawable/sym_keyboard_feedback_delete"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p"
latin:horizontalGap="6.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:isRepeatable="true" latin:isRepeatable="true"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
@ -72,29 +78,35 @@
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<!-- To match one character label size with "More", I placed spaces around the char ',' <!-- To match one character label size with "More", I placed spaces around the char ','
and '.'. --> and '.'. -->
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="44" latin:codes="44"
latin:keyLabel=" , " latin:keyLabel=" , " />
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="46" latin:codes="46"
latin:keyLabel=" . " /> latin:keyLabel=" . " />
<Spacer
latin:horizontalGap="11.5%p" />
<Key <Key
latin:codes="52" latin:codes="52"
latin:keyIcon="@drawable/sym_keyboard_num4" latin:keyIcon="@drawable/sym_keyboard_num4"
latin:horizontalGap="11.5%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="53" latin:codes="53"
latin:keyIcon="@drawable/sym_keyboard_num5" /> latin:keyIcon="@drawable/sym_keyboard_num5"
latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="54" latin:codes="54"
latin:keyIcon="@drawable/sym_keyboard_num6" /> latin:keyIcon="@drawable/sym_keyboard_num6"
latin:keyWidth="10.5%p " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="@integer/key_return" latin:codes="@integer/key_return"
latin:keyIcon="@drawable/sym_keyboard_return" latin:keyIcon="@drawable/sym_keyboard_return"
latin:iconPreview="@drawable/sym_keyboard_feedback_return" latin:iconPreview="@drawable/sym_keyboard_feedback_return"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p"
latin:horizontalGap="6.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
@ -103,47 +115,57 @@
and ')'. --> and ')'. -->
<!-- There is an empty area bellow the "More" key and left of the "(" key. To ignore <!-- There is an empty area bellow the "More" key and left of the "(" key. To ignore
the touch event on the area, "(" is intentionally not marked as a left edge key. --> the touch event on the area, "(" is intentionally not marked as a left edge key. -->
<Spacer
latin:horizontalGap="21.0%p" />
<Key <Key
latin:codes="40" latin:codes="40"
latin:keyLabel=" ( " latin:keyLabel=" ( " />
latin:horizontalGap="21.0%p" />
<Key <Key
latin:codes="41" latin:codes="41"
latin:keyLabel=" ) " /> latin:keyLabel=" ) " />
<Spacer
latin:horizontalGap="11.5%p" />
<Key <Key
latin:codes="55" latin:codes="55"
latin:keyIcon="@drawable/sym_keyboard_num7" latin:keyIcon="@drawable/sym_keyboard_num7"
latin:horizontalGap="11.5%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="56" latin:codes="56"
latin:keyIcon="@drawable/sym_keyboard_num8" /> latin:keyIcon="@drawable/sym_keyboard_num8"
<!-- There is an empty area bellow the "Enter" key and right of the "9" key. To ignore latin:keyWidth="10.5%p " />
the touch event on the area, "9" is intentionally not marked as a right edge key. -->
<Key <Key
latin:codes="57" latin:codes="57"
latin:keyIcon="@drawable/sym_keyboard_num9" /> latin:keyIcon="@drawable/sym_keyboard_num9"
</Row> latin:keyWidth="10.5%p " />
<!-- There is an empty area bellow the "Enter" key and right of the "9" key. To ignore
the touch event on the area, "9" is intentionally not marked as a right edge key. -->
</Row>
<!-- This row is intentionally not marked as a bottom row --> <!-- This row is intentionally not marked as a bottom row -->
<Row> <Row>
<!-- There is an empty area bellow the "More" key and left of the "space" key. To ignore <!-- There is an empty area bellow the "More" key and left of the "space" key. To ignore
the touch event on the area, "space" is intentionally not marked as a left edge key. --> the touch event on the area, "space" is intentionally not marked as a left edge key. -->
<Spacer
latin:horizontalGap="21.0%p" />
<Key <Key
latin:codes="@integer/key_space" latin:codes="@integer/key_space"
latin:keyIcon="@drawable/sym_keyboard_space" latin:keyIcon="@drawable/sym_keyboard_space"
latin:iconPreview="@drawable/sym_keyboard_feedback_space" latin:iconPreview="@drawable/sym_keyboard_feedback_space"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p" />
latin:horizontalGap="21.0%p " /> <Spacer
latin:horizontalGap="11.5%p" />
<Key <Key
latin:codes="42" latin:codes="42"
latin:keyIcon="@drawable/sym_keyboard_numstar" latin:keyIcon="@drawable/sym_keyboard_numstar"
latin:horizontalGap="11.5%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="48" latin:codes="48"
latin:keyIcon="@drawable/sym_keyboard_num0" /> latin:keyIcon="@drawable/sym_keyboard_num0"
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore latin:keyWidth="10.5%p " />
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
<Key <Key
latin:codes="35" latin:codes="35"
latin:keyIcon="@drawable/sym_keyboard_numpound" /> latin:keyIcon="@drawable/sym_keyboard_numpound"
latin:keyWidth="10.5%p " />
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
</Row> </Row>
</Keyboard> </Keyboard>

View File

@ -21,8 +21,8 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="7.5%p" latin:keyWidth="7.5%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="0px" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
<!-- This row is intentionally not marked as a top row --> <!-- This row is intentionally not marked as a top row -->
@ -33,10 +33,11 @@
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Spacer
latin:horizontalGap="4.0%p" />
<Key <Key
latin:codes="44" latin:codes="44"
latin:keyLabel="@string/label_pause_key" latin:keyLabel="@string/label_pause_key" />
latin:horizontalGap="4.0%p" />
<!-- To match one character label size with "Tab" and "Pause, I placed spaces around the <!-- To match one character label size with "Tab" and "Pause, I placed spaces around the
char '-' and '+'. --> char '-' and '+'. -->
<Key <Key
@ -45,22 +46,27 @@
<Key <Key
latin:codes="43" latin:codes="43"
latin:keyLabel=" + " /> latin:keyLabel=" + " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="49" latin:codes="49"
latin:keyIcon="@drawable/sym_keyboard_num1" latin:keyIcon="@drawable/sym_keyboard_num1"
latin:horizontalGap="6.0%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="50" latin:codes="50"
latin:keyIcon="@drawable/sym_keyboard_num2" /> latin:keyIcon="@drawable/sym_keyboard_num2"
latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="51" latin:codes="51"
latin:keyIcon="@drawable/sym_keyboard_num3" /> latin:keyIcon="@drawable/sym_keyboard_num3"
latin:keyWidth="10.5%p " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="@integer/key_delete" latin:codes="@integer/key_delete"
latin:keyIcon="@drawable/sym_keyboard_delete" latin:keyIcon="@drawable/sym_keyboard_delete"
latin:iconPreview="@drawable/sym_keyboard_feedback_delete" latin:iconPreview="@drawable/sym_keyboard_feedback_delete"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p"
latin:horizontalGap="6.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:isRepeatable="true" latin:isRepeatable="true"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
@ -73,10 +79,11 @@
latin:isModifier="true" latin:isModifier="true"
latin:isSticky="true" latin:isSticky="true"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Spacer
latin:horizontalGap="4.0%p" />
<Key <Key
latin:codes="59" latin:codes="59"
latin:keyLabel="@string/label_wait_key" latin:keyLabel="@string/label_wait_key" />
latin:horizontalGap="4.0%p" />
<!-- To match one character label size with "More" and "Wait", I placed spaces around the <!-- To match one character label size with "More" and "Wait", I placed spaces around the
char ',' and '.'. --> char ',' and '.'. -->
<Key <Key
@ -85,22 +92,27 @@
<Key <Key
latin:codes="46" latin:codes="46"
latin:keyLabel=" . " /> latin:keyLabel=" . " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="52" latin:codes="52"
latin:keyIcon="@drawable/sym_keyboard_num4" latin:keyIcon="@drawable/sym_keyboard_num4"
latin:horizontalGap="6.0%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="53" latin:codes="53"
latin:keyIcon="@drawable/sym_keyboard_num5" /> latin:keyIcon="@drawable/sym_keyboard_num5"
latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="54" latin:codes="54"
latin:keyIcon="@drawable/sym_keyboard_num6" /> latin:keyIcon="@drawable/sym_keyboard_num6"
latin:keyWidth="10.5%p " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="@integer/key_return" latin:codes="@integer/key_return"
latin:keyIcon="@drawable/sym_keyboard_return" latin:keyIcon="@drawable/sym_keyboard_return"
latin:iconPreview="@drawable/sym_keyboard_feedback_return" latin:iconPreview="@drawable/sym_keyboard_feedback_return"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p"
latin:horizontalGap="6.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
@ -109,50 +121,60 @@
char 'N', '(' and ')'. --> char 'N', '(' and ')'. -->
<!-- There is an empty area bellow the "More" key and left of the "(" key. To ignore <!-- There is an empty area bellow the "More" key and left of the "(" key. To ignore
the touch event on the area, "(" is intentionally not marked as a left edge key. --> the touch event on the area, "(" is intentionally not marked as a left edge key. -->
<Spacer
latin:horizontalGap="19.0%p" />
<Key <Key
latin:codes="78" latin:codes="78"
latin:keyLabel=" N " latin:keyLabel=" N " />
latin:horizontalGap="19.0%p" />
<Key <Key
latin:codes="40" latin:codes="40"
latin:keyLabel=" ( " /> latin:keyLabel=" ( " />
<Key <Key
latin:codes="41" latin:codes="41"
latin:keyLabel=" ) " /> latin:keyLabel=" ) " />
<Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="55" latin:codes="55"
latin:keyIcon="@drawable/sym_keyboard_num7" latin:keyIcon="@drawable/sym_keyboard_num7"
latin:horizontalGap="6.0%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="56" latin:codes="56"
latin:keyIcon="@drawable/sym_keyboard_num8" /> latin:keyIcon="@drawable/sym_keyboard_num8"
<!-- There is an empty area bellow the "Enter" key and right of the "9" key. To ignore latin:keyWidth="10.5%p " />
the touch event on the area, "9" is intentionally not marked as a right edge key. -->
<Key <Key
latin:codes="57" latin:codes="57"
latin:keyIcon="@drawable/sym_keyboard_num9" /> latin:keyIcon="@drawable/sym_keyboard_num9"
latin:keyWidth="10.5%p " />
<!-- There is an empty area bellow the "Enter" key and right of the "9" key. To ignore
the touch event on the area, "9" is intentionally not marked as a right edge key. -->
</Row> </Row>
<!-- This row is intentionally not marked as a bottom row --> <!-- This row is intentionally not marked as a bottom row -->
<Row> <Row>
<!-- There is an empty area bellow the "More" key and left of the "space" key. To ignore <!-- There is an empty area bellow the "More" key and left of the "space" key. To ignore
the touch event on the area, "space" is intentionally not marked as a left edge key. --> the touch event on the area, "space" is intentionally not marked as a left edge key. -->
<Spacer
latin:horizontalGap="19.0%p" />
<Key <Key
latin:codes="@integer/key_space" latin:codes="@integer/key_space"
latin:keyIcon="@drawable/sym_keyboard_space" latin:keyIcon="@drawable/sym_keyboard_space"
latin:iconPreview="@drawable/sym_keyboard_feedback_space" latin:iconPreview="@drawable/sym_keyboard_feedback_space"
latin:keyWidth="22.5%p" latin:keyWidth="22.5%p" />
latin:horizontalGap="19.0%p " /> <Spacer
latin:horizontalGap="6.0%p" />
<Key <Key
latin:codes="42" latin:codes="42"
latin:keyIcon="@drawable/sym_keyboard_numstar" latin:keyIcon="@drawable/sym_keyboard_numstar"
latin:horizontalGap="6.0%p" /> latin:keyWidth="10.5%p " />
<Key <Key
latin:codes="48" latin:codes="48"
latin:keyIcon="@drawable/sym_keyboard_num0" /> latin:keyIcon="@drawable/sym_keyboard_num0"
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore latin:keyWidth="10.5%p " />
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
<Key <Key
latin:codes="35" latin:codes="35"
latin:keyIcon="@drawable/sym_keyboard_numpound" /> latin:keyIcon="@drawable/sym_keyboard_numpound"
latin:keyWidth="10.5%p " />
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
</Row> </Row>
</Keyboard> </Keyboard>

View File

@ -20,7 +20,7 @@
<Keyboard xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" <Keyboard xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="7.5%p" latin:keyWidth="7.5%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="0px" latin:verticalGap="0px"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="7.5%p" latin:keyWidth="7.5%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
@ -30,62 +30,63 @@
<Key <Key
latin:codes="@integer/key_tab" latin:codes="@integer/key_tab"
latin:keyLabel="Tab" latin:keyLabel="Tab"
latin:keyWidth="7.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="q" latin:keyLabel="q"
latin:keyHintIcon="@drawable/keyboard_hint_1" latin:keyHintIcon="@drawable/key_hint_1_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_q" /> latin:popupCharacters="@string/alternates_for_q" />
<Key <Key
latin:keyLabel="w" latin:keyLabel="w"
latin:keyHintIcon="@drawable/keyboard_hint_2" latin:keyHintIcon="@drawable/key_hint_2_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_w" /> latin:popupCharacters="@string/alternates_for_w" />
<Key <Key
latin:keyLabel="e" latin:keyLabel="e"
latin:keyHintIcon="@drawable/keyboard_hint_3" latin:keyHintIcon="@drawable/key_hint_3_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_e" /> latin:popupCharacters="@string/alternates_for_e" />
<Key <Key
latin:keyLabel="r" latin:keyLabel="r"
latin:keyHintIcon="@drawable/keyboard_hint_4" latin:keyHintIcon="@drawable/key_hint_4_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_r" /> latin:popupCharacters="@string/alternates_for_r" />
<Key <Key
latin:keyLabel="t" latin:keyLabel="t"
latin:keyHintIcon="@drawable/keyboard_hint_5" latin:keyHintIcon="@drawable/key_hint_5_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_t" /> latin:popupCharacters="@string/alternates_for_t" />
<Key <Key
latin:keyLabel="y" latin:keyLabel="y"
latin:keyHintIcon="@drawable/keyboard_hint_6" latin:keyHintIcon="@drawable/key_hint_6_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_y" /> latin:popupCharacters="@string/alternates_for_y" />
<Key <Key
latin:keyLabel="u" latin:keyLabel="u"
latin:keyHintIcon="@drawable/keyboard_hint_7" latin:keyHintIcon="@drawable/key_hint_7_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_u" /> latin:popupCharacters="@string/alternates_for_u" />
<Key <Key
latin:keyLabel="i" latin:keyLabel="i"
latin:keyHintIcon="@drawable/keyboard_hint_8" latin:keyHintIcon="@drawable/key_hint_8_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_i" /> latin:popupCharacters="@string/alternates_for_i" />
<Key <Key
latin:keyLabel="o" latin:keyLabel="o"
latin:keyHintIcon="@drawable/keyboard_hint_9" latin:keyHintIcon="@drawable/key_hint_9_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_o" /> latin:popupCharacters="@string/alternates_for_o" />
<Key <Key
latin:keyLabel="p" latin:keyLabel="p"
latin:keyHintIcon="@drawable/keyboard_hint_0" latin:keyHintIcon="@drawable/key_hint_0_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_p" /> latin:popupCharacters="@string/alternates_for_p" />
<Key <Key
latin:keyLabel="=" latin:keyLabel="="
latin:temporaryShiftKeyLabel="+" latin:temporaryShiftKeyLabel="+"
latin:keyHintIcon="@drawable/keyboard_hint_plus" latin:keyHintIcon="@drawable/key_hint_plus_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="+" /> latin:popupCharacters="+" />
<Key <Key
@ -138,13 +139,13 @@
<Key <Key
latin:keyLabel=";" latin:keyLabel=";"
latin:temporaryShiftKeyLabel=":" latin:temporaryShiftKeyLabel=":"
latin:keyHintIcon="@drawable/keyboard_hint_colon" latin:keyHintIcon="@drawable/key_hint_colon_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters=":" /> latin:popupCharacters=":" />
<Key <Key
latin:keyLabel="\'" latin:keyLabel="\'"
latin:temporaryShiftKeyLabel="&quot;" latin:temporaryShiftKeyLabel="&quot;"
latin:keyHintIcon="@drawable/keyboard_hint_quote" latin:keyHintIcon="@drawable/key_hint_quote_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&quot;" /> latin:popupCharacters="&quot;" />
<Key <Key
@ -195,13 +196,13 @@
<Key <Key
latin:keyLabel=";" latin:keyLabel=";"
latin:temporaryShiftKeyLabel=":" latin:temporaryShiftKeyLabel=":"
latin:keyHintIcon="@drawable/keyboard_hint_colon" latin:keyHintIcon="@drawable/key_hint_colon_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters=":" /> latin:popupCharacters=":" />
<Key <Key
latin:keyLabel="\'" latin:keyLabel="\'"
latin:temporaryShiftKeyLabel="&quot;" latin:temporaryShiftKeyLabel="&quot;"
latin:keyHintIcon="@drawable/keyboard_hint_quote" latin:keyHintIcon="@drawable/key_hint_quote_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&quot;" /> latin:popupCharacters="&quot;" />
<Key <Key
@ -254,7 +255,7 @@
<Key <Key
latin:keyLabel="\'" latin:keyLabel="\'"
latin:temporaryShiftKeyLabel="&quot;" latin:temporaryShiftKeyLabel="&quot;"
latin:keyHintIcon="@drawable/keyboard_hint_quote" latin:keyHintIcon="@drawable/key_hint_quote_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&quot;" /> latin:popupCharacters="&quot;" />
<Key <Key
@ -305,13 +306,13 @@
<Key <Key
latin:keyLabel=";" latin:keyLabel=";"
latin:temporaryShiftKeyLabel=":" latin:temporaryShiftKeyLabel=":"
latin:keyHintIcon="@drawable/keyboard_hint_colon" latin:keyHintIcon="@drawable/key_hint_colon_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters=":" /> latin:popupCharacters=":" />
<Key <Key
latin:keyLabel="\'" latin:keyLabel="\'"
latin:temporaryShiftKeyLabel="&quot;" latin:temporaryShiftKeyLabel="&quot;"
latin:keyHintIcon="@drawable/keyboard_hint_quote" latin:keyHintIcon="@drawable/key_hint_quote_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&quot;" /> latin:popupCharacters="&quot;" />
<Key <Key
@ -362,13 +363,13 @@
<Key <Key
latin:keyLabel=";" latin:keyLabel=";"
latin:temporaryShiftKeyLabel=":" latin:temporaryShiftKeyLabel=":"
latin:keyHintIcon="@drawable/keyboard_hint_colon" latin:keyHintIcon="@drawable/key_hint_colon_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters=":" /> latin:popupCharacters=":" />
<Key <Key
latin:keyLabel="\'" latin:keyLabel="\'"
latin:temporaryShiftKeyLabel="&quot;" latin:temporaryShiftKeyLabel="&quot;"
latin:keyHintIcon="@drawable/keyboard_hint_quote" latin:keyHintIcon="@drawable/key_hint_quote_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&quot;" /> latin:popupCharacters="&quot;" />
<Key <Key
@ -415,19 +416,19 @@
<Key <Key
latin:keyLabel="," latin:keyLabel=","
latin:temporaryShiftKeyLabel="*" latin:temporaryShiftKeyLabel="*"
latin:keyHintIcon="@drawable/keyboard_hint_star" latin:keyHintIcon="@drawable/key_hint_star_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="*" /> latin:popupCharacters="*" />
<Key <Key
latin:keyLabel="." latin:keyLabel="."
latin:temporaryShiftKeyLabel="!" latin:temporaryShiftKeyLabel="!"
latin:keyHintIcon="@drawable/keyboard_hint_exclamation" latin:keyHintIcon="@drawable/key_hint_exclamation_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="!" /> latin:popupCharacters="!" />
<Key <Key
latin:keyLabel="/" latin:keyLabel="/"
latin:temporaryShiftKeyLabel="\?" latin:temporaryShiftKeyLabel="\?"
latin:keyHintIcon="@drawable/keyboard_hint_question" latin:keyHintIcon="@drawable/key_hint_question_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\?" /> latin:popupCharacters="\?" />
<Key <Key
@ -475,19 +476,19 @@
<Key <Key
latin:keyLabel="," latin:keyLabel=","
latin:temporaryShiftKeyLabel="*" latin:temporaryShiftKeyLabel="*"
latin:keyHintIcon="@drawable/keyboard_hint_star" latin:keyHintIcon="@drawable/key_hint_star_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="*" /> latin:popupCharacters="*" />
<Key <Key
latin:keyLabel="." latin:keyLabel="."
latin:temporaryShiftKeyLabel="!" latin:temporaryShiftKeyLabel="!"
latin:keyHintIcon="@drawable/keyboard_hint_exclamation" latin:keyHintIcon="@drawable/key_hint_exclamation_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="!" /> latin:popupCharacters="!" />
<Key <Key
latin:keyLabel="/" latin:keyLabel="/"
latin:temporaryShiftKeyLabel="\?" latin:temporaryShiftKeyLabel="\?"
latin:keyHintIcon="@drawable/keyboard_hint_question" latin:keyHintIcon="@drawable/key_hint_question_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\?" /> latin:popupCharacters="\?" />
<Key <Key
@ -583,19 +584,19 @@
<Key <Key
latin:keyLabel="," latin:keyLabel=","
latin:temporaryShiftKeyLabel="*" latin:temporaryShiftKeyLabel="*"
latin:keyHintIcon="@drawable/keyboard_hint_star" latin:keyHintIcon="@drawable/key_hint_star_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="*" /> latin:popupCharacters="*" />
<Key <Key
latin:keyLabel="." latin:keyLabel="."
latin:temporaryShiftKeyLabel="!" latin:temporaryShiftKeyLabel="!"
latin:keyHintIcon="@drawable/keyboard_hint_exclamation" latin:keyHintIcon="@drawable/key_hint_exclamation_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="!" /> latin:popupCharacters="!" />
<Key <Key
latin:keyLabel="/" latin:keyLabel="/"
latin:temporaryShiftKeyLabel="\?" latin:temporaryShiftKeyLabel="\?"
latin:keyHintIcon="@drawable/keyboard_hint_question" latin:keyHintIcon="@drawable/key_hint_question_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\?" /> latin:popupCharacters="\?" />
<Key <Key
@ -643,19 +644,19 @@
<Key <Key
latin:keyLabel="," latin:keyLabel=","
latin:temporaryShiftKeyLabel="*" latin:temporaryShiftKeyLabel="*"
latin:keyHintIcon="@drawable/keyboard_hint_star" latin:keyHintIcon="@drawable/key_hint_star_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="*" /> latin:popupCharacters="*" />
<Key <Key
latin:keyLabel="." latin:keyLabel="."
latin:temporaryShiftKeyLabel="!" latin:temporaryShiftKeyLabel="!"
latin:keyHintIcon="@drawable/keyboard_hint_exclamation" latin:keyHintIcon="@drawable/key_hint_exclamation_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="!" /> latin:popupCharacters="!" />
<Key <Key
latin:keyLabel="/" latin:keyLabel="/"
latin:temporaryShiftKeyLabel="\?" latin:temporaryShiftKeyLabel="\?"
latin:keyHintIcon="@drawable/keyboard_hint_question" latin:keyHintIcon="@drawable/key_hint_question_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\?" /> latin:popupCharacters="\?" />
<Key <Key
@ -671,17 +672,18 @@
<Row <Row
latin:keyboardMode="@+id/mode_normal" latin:keyboardMode="@+id/mode_normal"
> >
<Spacer
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel="(" latin:keyLabel="("
latin:temporaryShiftKeyLabel="&lt;" latin:temporaryShiftKeyLabel="&lt;"
latin:keyHintIcon="@drawable/keyboard_hint_smaller" latin:keyHintIcon="@drawable/key_hint_smaller_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&lt;" latin:popupCharacters="&lt;" />
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel=")" latin:keyLabel=")"
latin:temporaryShiftKeyLabel="&gt;" latin:temporaryShiftKeyLabel="&gt;"
latin:keyHintIcon="@drawable/keyboard_hint_greater" latin:keyHintIcon="@drawable/key_hint_larger_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&gt;" /> latin:popupCharacters="&gt;" />
<Key <Key
@ -693,7 +695,7 @@
<Key <Key
latin:keyLabel="_" latin:keyLabel="_"
latin:temporaryShiftKeyLabel="\@" latin:temporaryShiftKeyLabel="\@"
latin:keyHintIcon="@drawable/keyboard_hint_at" latin:keyHintIcon="@drawable/key_hint_at_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\@" /> latin:popupCharacters="\@" />
<Key <Key
@ -706,11 +708,12 @@
<Row <Row
latin:keyboardMode="@+id/mode_url" latin:keyboardMode="@+id/mode_url"
> >
<Spacer
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel=".com" latin:keyLabel=".com"
latin:keyOutputText=".com" latin:keyOutputText=".com"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p" />
latin:horizontalGap="16.25%p" />
<Key <Key
latin:codes="@integer/key_space" latin:codes="@integer/key_space"
latin:keyIcon="@drawable/sym_keyboard_space" latin:keyIcon="@drawable/sym_keyboard_space"
@ -720,7 +723,7 @@
<Key <Key
latin:keyLabel="_" latin:keyLabel="_"
latin:temporaryShiftKeyLabel="\@" latin:temporaryShiftKeyLabel="\@"
latin:keyHintIcon="@drawable/keyboard_hint_at" latin:keyHintIcon="@drawable/key_hint_at_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\@" /> latin:popupCharacters="\@" />
<Key <Key
@ -733,11 +736,12 @@
<Row <Row
latin:keyboardMode="@+id/mode_email" latin:keyboardMode="@+id/mode_email"
> >
<Spacer
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel=".com" latin:keyLabel=".com"
latin:keyOutputText=".com" latin:keyOutputText=".com"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p" />
latin:horizontalGap="16.25%p" />
<Key <Key
latin:codes="@integer/key_space" latin:codes="@integer/key_space"
latin:keyIcon="@drawable/sym_keyboard_space" latin:keyIcon="@drawable/sym_keyboard_space"
@ -752,12 +756,13 @@
<Row <Row
latin:keyboardMode="@+id/mode_im" latin:keyboardMode="@+id/mode_im"
> >
<Spacer
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel=":-)" latin:keyLabel=":-)"
latin:keyOutputText=":-)" latin:keyOutputText=":-)"
latin:popupKeyboard="@xml/popup_smileys" latin:popupKeyboard="@xml/popup_smileys"
latin:keyWidth="15.0%p" latin:keyWidth="15.0%p" />
latin:horizontalGap="16.25%p" />
<Key <Key
latin:codes="@integer/key_space" latin:codes="@integer/key_space"
latin:keyIcon="@drawable/sym_keyboard_space" latin:keyIcon="@drawable/sym_keyboard_space"
@ -767,7 +772,7 @@
<Key <Key
latin:keyLabel="_" latin:keyLabel="_"
latin:temporaryShiftKeyLabel="\@" latin:temporaryShiftKeyLabel="\@"
latin:keyHintIcon="@drawable/keyboard_hint_at" latin:keyHintIcon="@drawable/key_hint_at_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\@" /> latin:popupCharacters="\@" />
<Key <Key
@ -780,17 +785,18 @@
<Row <Row
latin:keyboardMode="@+id/mode_webentry" latin:keyboardMode="@+id/mode_webentry"
> >
<Spacer
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel="(" latin:keyLabel="("
latin:temporaryShiftKeyLabel="&lt;" latin:temporaryShiftKeyLabel="&lt;"
latin:keyHintIcon="@drawable/keyboard_hint_smaller" latin:keyHintIcon="@drawable/key_hint_smaller_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&lt;" latin:popupCharacters="&lt;" />
latin:horizontalGap="16.25%p" />
<Key <Key
latin:keyLabel=")" latin:keyLabel=")"
latin:temporaryShiftKeyLabel="&gt;" latin:temporaryShiftKeyLabel="&gt;"
latin:keyHintIcon="@drawable/keyboard_hint_greater" latin:keyHintIcon="@drawable/key_hint_larger_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="&gt;" /> latin:popupCharacters="&gt;" />
<Key <Key
@ -802,7 +808,7 @@
<Key <Key
latin:keyLabel="_" latin:keyLabel="_"
latin:temporaryShiftKeyLabel="\@" latin:temporaryShiftKeyLabel="\@"
latin:keyHintIcon="@drawable/keyboard_hint_at" latin:keyHintIcon="@drawable/key_hint_at_holo"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="\@" /> latin:popupCharacters="\@" />
<Key <Key

View File

@ -21,8 +21,8 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="7.5%p" latin:keyWidth="7.5%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="0px" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
<!-- This row is intentionally not marked as a top row --> <!-- This row is intentionally not marked as a top row -->
@ -30,6 +30,7 @@
<Key <Key
latin:codes="@integer/key_tab" latin:codes="@integer/key_tab"
latin:keyLabel="Tab" latin:keyLabel="Tab"
latin:keyWidth="7.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
@ -140,9 +141,10 @@
</Row> </Row>
<!-- This row is intentionally not marked as a bottom row --> <!-- This row is intentionally not marked as a bottom row -->
<Row> <Row>
<Key <Spacer
latin:keyLabel="&lt;"
latin:horizontalGap="16.25%p" /> latin:horizontalGap="16.25%p" />
<Key
latin:keyLabel="&lt;" />
<Key <Key
latin:keyLabel="&gt;" /> latin:keyLabel="&gt;" />
<Key <Key

View File

@ -21,8 +21,8 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="7.5%p" latin:keyWidth="7.5%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="0px" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
<!-- This row is intentionally not marked as a top row --> <!-- This row is intentionally not marked as a top row -->
@ -30,6 +30,7 @@
<Key <Key
latin:codes="@integer/key_tab" latin:codes="@integer/key_tab"
latin:keyLabel="Tab" latin:keyLabel="Tab"
latin:keyWidth="7.0%p"
latin:isModifier="true" latin:isModifier="true"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
@ -140,9 +141,10 @@
</Row> </Row>
<!-- This row is intentionally not marked as a bottom row --> <!-- This row is intentionally not marked as a bottom row -->
<Row> <Row>
<Key <Spacer
latin:keyLabel="≤"
latin:horizontalGap="16.25%p" /> latin:horizontalGap="16.25%p" />
<Key
latin:keyLabel="≤" />
<Key <Key
latin:keyLabel="≥" /> latin:keyLabel="≥" />
<Key <Key

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="26.67%p" latin:keyWidth="26.67%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="26.67%p" latin:keyWidth="26.67%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="26.67%p" latin:keyWidth="26.67%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="26.67%p" latin:keyWidth="26.67%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -20,7 +20,7 @@
<Keyboard xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" <Keyboard xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="0px" latin:verticalGap="0px"
latin:keyHeight="@dimen/popup_key_height" latin:keyHeight="@dimen/popup_key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
@ -82,11 +82,12 @@
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
<Row> <Row>
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="a" latin:keyLabel="a"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_a" latin:popupCharacters="@string/alternates_for_a"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="s" latin:keyLabel="s"

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >
@ -82,11 +82,12 @@
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
<Row> <Row>
<Spacer
latin:horizontalGap="5%p" />
<Key <Key
latin:keyLabel="a" latin:keyLabel="a"
latin:popupKeyboard="@xml/kbd_popup_template" latin:popupKeyboard="@xml/kbd_popup_template"
latin:popupCharacters="@string/alternates_for_a" latin:popupCharacters="@string/alternates_for_a"
latin:horizontalGap="5%p"
latin:keyEdgeFlags="left" /> latin:keyEdgeFlags="left" />
<Key <Key
latin:keyLabel="s" latin:keyLabel="s"

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -21,7 +21,7 @@
<Keyboard <Keyboard
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
latin:keyWidth="10%p" latin:keyWidth="10%p"
latin:horizontalGap="0px" latin:horizontalGap="@dimen/key_horizontal_gap"
latin:verticalGap="@dimen/key_bottom_gap" latin:verticalGap="@dimen/key_bottom_gap"
latin:keyHeight="@dimen/key_height" latin:keyHeight="@dimen/key_height"
> >

View File

@ -61,6 +61,7 @@ public class BaseKeyboard {
private static final String TAG_KEYBOARD = "Keyboard"; private static final String TAG_KEYBOARD = "Keyboard";
private static final String TAG_ROW = "Row"; private static final String TAG_ROW = "Row";
private static final String TAG_KEY = "Key"; private static final String TAG_KEY = "Key";
private static final String TAG_SPACER = "Spacer";
private static final String TAG_INCLUDE = "include"; private static final String TAG_INCLUDE = "include";
private static final String TAG_MERGE = "merge"; private static final String TAG_MERGE = "merge";
@ -273,8 +274,8 @@ public class BaseKeyboard {
public Key(Row parent) { public Key(Row parent) {
keyboard = parent.parent; keyboard = parent.parent;
height = parent.defaultHeight; height = parent.defaultHeight;
width = parent.defaultWidth;
gap = parent.defaultHorizontalGap; gap = parent.defaultHorizontalGap;
width = parent.defaultWidth - gap;
edgeFlags = parent.rowEdgeFlags; edgeFlags = parent.rowEdgeFlags;
} }
@ -290,21 +291,21 @@ public class BaseKeyboard {
public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) {
this(parent); this(parent);
this.x = x;
this.y = y;
TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser),
R.styleable.BaseKeyboard); R.styleable.BaseKeyboard);
width = getDimensionOrFraction(a, R.styleable.BaseKeyboard_keyWidth,
keyboard.mDisplayWidth, parent.defaultWidth);
height = getDimensionOrFraction(a, R.styleable.BaseKeyboard_keyHeight, height = getDimensionOrFraction(a, R.styleable.BaseKeyboard_keyHeight,
keyboard.mDisplayHeight, parent.defaultHeight); keyboard.mDisplayHeight, parent.defaultHeight);
gap = getDimensionOrFraction(a, R.styleable.BaseKeyboard_horizontalGap, gap = getDimensionOrFraction(a, R.styleable.BaseKeyboard_horizontalGap,
keyboard.mDisplayWidth, parent.defaultHorizontalGap); keyboard.mDisplayWidth, parent.defaultHorizontalGap);
width = getDimensionOrFraction(a, R.styleable.BaseKeyboard_keyWidth,
keyboard.mDisplayWidth, parent.defaultWidth) - gap;
a.recycle(); a.recycle();
a = res.obtainAttributes(Xml.asAttributeSet(parser), R.styleable.BaseKeyboard_Key); a = res.obtainAttributes(Xml.asAttributeSet(parser), R.styleable.BaseKeyboard_Key);
this.x += gap;
// Horizontal gap is divided equally to both sides of the key.
this.x = x + gap / 2;
this.y = y;
TypedValue codesValue = new TypedValue(); TypedValue codesValue = new TypedValue();
a.getValue(R.styleable.BaseKeyboard_Key_codes, codesValue); a.getValue(R.styleable.BaseKeyboard_Key_codes, codesValue);
if (codesValue.type == TypedValue.TYPE_INT_DEC if (codesValue.type == TypedValue.TYPE_INT_DEC
@ -731,6 +732,10 @@ public class BaseKeyboard {
mTotalHeight = mCurrentY - defaultVerticalGap; mTotalHeight = mCurrentY - defaultVerticalGap;
} }
public void setSpacer(int gap) {
mCurrentX += gap;
}
public int getMaxRowWidth() { public int getMaxRowWidth() {
return mMaxRowWidth; return mMaxRowWidth;
} }
@ -774,6 +779,8 @@ public class BaseKeyboard {
mKeys.add(key); mKeys.add(key);
if (key.codes[0] == KEYCODE_SHIFT) if (key.codes[0] == KEYCODE_SHIFT)
mShiftKeys.add(key); mShiftKeys.add(key);
} else if (TAG_SPACER.equals(tag)) {
parseSpacerAttribute(res, parser, state);
} else if (TAG_KEYBOARD.equals(tag)) { } else if (TAG_KEYBOARD.equals(tag)) {
parseKeyboardAttributes(res, parser); parseKeyboardAttributes(res, parser);
} else if (TAG_INCLUDE.equals(tag)) { } else if (TAG_INCLUDE.equals(tag)) {
@ -791,6 +798,8 @@ public class BaseKeyboard {
state.endKey(key); state.endKey(key);
} else if (TAG_ROW.equals(tag)) { } else if (TAG_ROW.equals(tag)) {
state.endRow(); state.endRow();
} else if (TAG_SPACER.equals(tag)) {
;
} else if (TAG_KEYBOARD.equals(tag)) { } else if (TAG_KEYBOARD.equals(tag)) {
state.endKeyboard(mDefaultVerticalGap); state.endKeyboard(mDefaultVerticalGap);
} else if (TAG_INCLUDE.equals(tag)) { } else if (TAG_INCLUDE.equals(tag)) {
@ -804,6 +813,15 @@ public class BaseKeyboard {
} }
} }
private void parseSpacerAttribute(Resources res, XmlResourceParser parser,
KeyboardParseState state) {
TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), R.styleable.BaseKeyboard);
int gap = getDimensionOrFraction(a,
R.styleable.BaseKeyboard_horizontalGap, mDisplayWidth, 0);
a.recycle();
state.setSpacer(gap);
}
private void parseInclude(Resources res, XmlResourceParser parent, KeyboardParseState state) private void parseInclude(Resources res, XmlResourceParser parent, KeyboardParseState state)
throws XmlPullParserException, IOException { throws XmlPullParserException, IOException {
final TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parent), final TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parent),
@ -848,19 +866,14 @@ public class BaseKeyboard {
private void parseKeyboardAttributes(Resources res, XmlResourceParser parser) { private void parseKeyboardAttributes(Resources res, XmlResourceParser parser) {
TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser),
R.styleable.BaseKeyboard); R.styleable.BaseKeyboard);
mDefaultWidth = getDimensionOrFraction(a, mDefaultWidth = getDimensionOrFraction(a,
R.styleable.BaseKeyboard_keyWidth, R.styleable.BaseKeyboard_keyWidth, mDisplayWidth, mDisplayWidth / 10);
mDisplayWidth, mDisplayWidth / 10);
mDefaultHeight = getDimensionOrFraction(a, mDefaultHeight = getDimensionOrFraction(a,
R.styleable.BaseKeyboard_keyHeight, R.styleable.BaseKeyboard_keyHeight, mDisplayHeight, 50);
mDisplayHeight, 50);
mDefaultHorizontalGap = getDimensionOrFraction(a, mDefaultHorizontalGap = getDimensionOrFraction(a,
R.styleable.BaseKeyboard_horizontalGap, R.styleable.BaseKeyboard_horizontalGap, mDisplayWidth, 0);
mDisplayWidth, 0);
mDefaultVerticalGap = getDimensionOrFraction(a, mDefaultVerticalGap = getDimensionOrFraction(a,
R.styleable.BaseKeyboard_verticalGap, R.styleable.BaseKeyboard_verticalGap, mDisplayHeight, 0);
mDisplayHeight, 0);
mProximityThreshold = (int) (mDefaultWidth * SEARCH_DISTANCE); mProximityThreshold = (int) (mDefaultWidth * SEARCH_DISTANCE);
mProximityThreshold = mProximityThreshold * mProximityThreshold; mProximityThreshold = mProximityThreshold * mProximityThreshold;
a.recycle(); a.recycle();