| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2010-2014, Google Inc. |
| All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the following conditions are |
| met: |
| |
| * Redistributions of source code must retain the above copyright |
| notice, this list of conditions and the following disclaimer. |
| * Redistributions in binary form must reproduce the above |
| copyright notice, this list of conditions and the following disclaimer |
| in the documentation and/or other materials provided with the |
| distribution. |
| * Neither the name of Google Inc. nor the names of its |
| contributors may be used to endorse or promote products derived from |
| this software without specific prior written permission. |
| |
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| --> |
| <!-- |
| The current keycode mapping to flick direction and tapping action is as follows; |
| +===========+===========+===========+ |
| | | | | |
| | '1' | '2' | '3' | |
| | | | | |
| +===========+===========+===========+ |
| | | | | |
| | '4' | '5' | '6' | |
| | | | | |
| +===========+===========+===========+ |
| | | | | |
| | '7' | '8' | '9' | |
| | | | | |
| +===========+===========+===========+ |
| | '.' | | '=' | |
| |'~' '/' '*'| '0' |'-' '+' '#'| |
| | | | | |
| +===========+===========+===========+ |
| --> |
| <Keyboard |
| xmlns:mozc="http://schemas.android.com/apk/res-auto" |
| mozc:keyboardContentDescription="@string/cd_keyboard_number" |
| mozc:keyBackground="twelvekeysRegular" |
| mozc:keyWidth="21.8%p" mozc:keyHeight="24%p" |
| mozc:horizontalGap="0dip" mozc:verticalGap="0dip" |
| mozc:popUpWidth="@dimen/key_preview_height" mozc:popUpHeight="@dimen/key_preview_height" |
| mozc:popUpXOffset="0dip" mozc:popUpYOffset="@dimen/mini_keyboard_vertical_correction"> |
| <Row mozc:rowEdgeFlags="top" mozc:keyHeight="0dip" mozc:verticalGap="4%p" /> |
| <Row> |
| <Key mozc:keyBackground="twelvekeysFunction" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="left"> |
| <KeyState mozc:contentDescription="@string/cd_key_undo"> |
| <Flick> |
| <KeyEntity mozc:sourceId="1" |
| mozc:keyCode="@integer/key_undo" |
| mozc:keyIcon="@raw/twelvekeys__function__undo__icon"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__function__undo__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_one"> |
| <Flick> |
| <KeyEntity mozc:sourceId="2" |
| mozc:keyCode="@integer/uchar_digit_one" |
| mozc:keyIcon="@raw/twelvekeys__number__01"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__01" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_two"> |
| <Flick> |
| <KeyEntity mozc:sourceId="3" |
| mozc:keyCode="@integer/uchar_digit_two" |
| mozc:keyIcon="@raw/twelvekeys__number__02"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__02" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_three"> |
| <Flick> |
| <KeyEntity mozc:sourceId="4" |
| mozc:keyCode="@integer/uchar_digit_three" |
| mozc:keyIcon="@raw/twelvekeys__number__03"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__03" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key mozc:keyBackground="twelvekeysFunction" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="right" mozc:isRepeatable="true"> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_backspace"> |
| <Flick> |
| <KeyEntity mozc:sourceId="5" |
| mozc:keyCode="@integer/key_backspace" |
| mozc:keyIcon="@raw/twelvekeys__function__delete__icon"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__function__delete__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| </Row> |
| <Row> |
| <Key mozc:keyBackground="twelvekeysFunction" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="left" mozc:isRepeatable="true"> |
| <KeyState mozc:contentDescription="@string/cd_key_left"> |
| <Flick> |
| <KeyEntity mozc:sourceId="6" |
| mozc:keyCode="@integer/key_left" |
| mozc:keyIcon="@raw/twelvekeys__function__left_arrow__icon"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__function__left_arrow__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_four"> |
| <Flick> |
| <KeyEntity mozc:sourceId="7" |
| mozc:keyCode="@integer/uchar_digit_four" |
| mozc:keyIcon="@raw/twelvekeys__number__04"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__04" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_five"> |
| <Flick> |
| <KeyEntity mozc:sourceId="8" |
| mozc:keyCode="@integer/uchar_digit_five" |
| mozc:keyIcon="@raw/twelvekeys__number__05"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__05" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_six"> |
| <Flick> |
| <KeyEntity mozc:sourceId="9" |
| mozc:keyCode="@integer/uchar_digit_six" |
| mozc:keyIcon="@raw/twelvekeys__number__06"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__06" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key mozc:keyBackground="twelvekeysFunction" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="right" mozc:isRepeatable="true"> |
| <KeyState mozc:contentDescription="@string/cd_key_right"> |
| <Flick> |
| <KeyEntity mozc:sourceId="10" |
| mozc:keyCode="@integer/key_right" |
| mozc:keyIcon="@raw/twelvekeys__function__right_arrow__icon"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__function__right_arrow__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| </Row> |
| <Row> |
| <Key mozc:keyBackground="twelvekeysFunction" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="left"> |
| <KeyState mozc:contentDescription="@string/cd_key_symbol"> |
| <Flick> |
| <KeyEntity mozc:sourceId="11" |
| mozc:keyCode="@integer/key_symbol" |
| mozc:keyIcon="@raw/twelvekeys__function__symbol__icon"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__function__symbol__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_seven"> |
| <Flick> |
| <KeyEntity mozc:sourceId="12" |
| mozc:keyCode="@integer/uchar_digit_seven" |
| mozc:keyIcon="@raw/twelvekeys__number__07"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__07" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_eight"> |
| <Flick> |
| <KeyEntity mozc:sourceId="13" |
| mozc:keyCode="@integer/uchar_digit_eight" |
| mozc:keyIcon="@raw/twelvekeys__number__08"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__08" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_nine"> |
| <Flick> |
| <KeyEntity mozc:sourceId="14" |
| mozc:keyCode="@integer/uchar_digit_nine" |
| mozc:keyIcon="@raw/twelvekeys__number__09"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__09" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key mozc:keyBackground="twelvekeysFunctionWithThreeDots" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="right"> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_space"> |
| <Flick> |
| <KeyEntity mozc:sourceId="15" |
| mozc:keyCode="@integer/uchar_space" |
| mozc:longPressKeyCode="@integer/key_ime_picker_dialog" |
| mozc:keyIcon="@raw/twelvekeys__function__space__icon"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__function__space__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| </Row> |
| <Row> |
| <Key mozc:keyBackground="twelvekeysFunctionWithThreeDots" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="left"> |
| <KeyState mozc:contentDescription="@string/cd_key_chartype_to_kana"> |
| <Flick> |
| <KeyEntity mozc:sourceId="16" |
| mozc:keyCode="@integer/key_chartype_to_kana" |
| mozc:longPressKeyCode="@integer/key_menu_dialog" |
| mozc:keyIcon="@raw/twelvekeys__function__number__icon"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__function__kana__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_solidus"> |
| <Flick> |
| <KeyEntity mozc:sourceId="17" |
| mozc:keyCode="@integer/uchar_solidus" |
| mozc:keyIcon="@raw/twelvekeys__number__10"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__support__popup__10" /> |
| </KeyEntity> |
| </Flick> |
| <Flick mozc:direction="left"> |
| <KeyEntity mozc:sourceId="18" |
| mozc:keyCode="@integer/uchar_tilde" |
| mozc:keyIcon="@raw/twelvekeys__number__10"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__keyicon__tilde" /> |
| </KeyEntity> |
| </Flick> |
| <Flick mozc:direction="up"> |
| <KeyEntity mozc:sourceId="19" |
| mozc:keyCode="@integer/uchar_full_stop" |
| mozc:keyIcon="@raw/twelvekeys__number__10"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__keyicon__full_stop" /> |
| </KeyEntity> |
| </Flick> |
| <Flick mozc:direction="right"> |
| <KeyEntity mozc:sourceId="20" |
| mozc:keyCode="@integer/uchar_asterisk" |
| mozc:keyIcon="@raw/twelvekeys__number__10"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__keyicon__asterisk" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_digit_zero"> |
| <Flick> |
| <KeyEntity mozc:sourceId="21" |
| mozc:keyCode="@integer/uchar_digit_zero" |
| mozc:keyIcon="@raw/twelvekeys__number__11"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__11" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_plus_sign"> |
| <Flick> |
| <KeyEntity mozc:sourceId="22" |
| mozc:keyCode="@integer/uchar_plus_sign" |
| mozc:keyIcon="@raw/twelvekeys__number__12"> |
| <PopUp mozc:popUpIcon="@raw/twelvekeys__number__support__popup__12" /> |
| </KeyEntity> |
| </Flick> |
| <Flick mozc:direction="left"> |
| <KeyEntity mozc:sourceId="23" |
| mozc:keyCode="@integer/uchar_hyphen_minus" |
| mozc:keyIcon="@raw/twelvekeys__number__12"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__keyicon__minus_sign" /> |
| </KeyEntity> |
| </Flick> |
| <Flick mozc:direction="up"> |
| <KeyEntity mozc:sourceId="24" |
| mozc:keyCode="@integer/uchar_equals_sign" |
| mozc:keyIcon="@raw/twelvekeys__number__12"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__keyicon__equals_sign" /> |
| </KeyEntity> |
| </Flick> |
| <Flick mozc:direction="right"> |
| <KeyEntity mozc:sourceId="25" |
| mozc:keyCode="@integer/uchar_number_sign" |
| mozc:keyIcon="@raw/twelvekeys__number__12"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__keyicon__number_sign" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| <Key mozc:keyBackground="twelvekeysFunction" |
| mozc:keyWidth="17.3%p" mozc:keyEdgeFlags="right" mozc:isRepeatable="true"> |
| <KeyState mozc:contentDescription="@string/cd_key_uchar_linefeed"> |
| <Flick> |
| <KeyEntity mozc:sourceId="26" |
| mozc:keyCode="@integer/uchar_linefeed" |
| mozc:keyIcon="@raw/twelvekeys__function__enter__icon"> |
| <PopUp mozc:popUpIcon="@raw/qwerty__function__enter__popup" /> |
| </KeyEntity> |
| </Flick> |
| </KeyState> |
| </Key> |
| </Row> |
| <!-- Next sourceId: 27 --> |
| </Keyboard> |