520a297ad1
This change introduces: * New KeyboardView attribute * keyLargeLetterRatio to specify large letter text size. * keyHintLabelRatio to specify hint label text size. * keyHintLabelColor to specify hint label text color. * keyPreviewTextRatio to specify key preview text size. * New Key.keyLabelOption flags * alignLeftOfCenter, align the key label slightly left of the key center. * largeLetter, use keyLargeLetterRatio to draw key letter. * hasHintLabel, draw keyHintLabel at the right of key letter. * followKeyHintLabelRatio, draw the key label following keyHintLabelRatio size. * Renames * Key.keyHintLetter to keyHintLabel. * Key.keylLabelOption fontFixedWidth to fontMonoSpace. * Key.keylLabelOption popupHint to hasPopupHint. * Removes * number icon releted attributes and declarations. Change-Id: I2f456737e3a46209e5f48b5155951b2b21a33859
107 lines
3.6 KiB
XML
107 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
**
|
|
** Copyright 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.
|
|
*/
|
|
-->
|
|
|
|
<merge
|
|
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
|
>
|
|
<key-style
|
|
latin:styleName="numKeyStyle"
|
|
latin:keyLabelOption="largeLetter|followKeyLetterRatio" />
|
|
<key-style
|
|
latin:styleName="numModeKeyStyle"
|
|
latin:keyLabelOption="fontNormal|followKeyLetterRatio" />
|
|
<key-style
|
|
latin:styleName="numFunctionalKeyStyle"
|
|
latin:keyLabelOption="largeLetter|followKeyLetterRatio"
|
|
latin:parentStyle="functionalKeyStyle" />
|
|
<key-style
|
|
latin:styleName="numberKeyStyle"
|
|
latin:keyLabelOption="alignLeftOfCenter|hasHintLabel"
|
|
latin:parentStyle="numKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num0KeyStyle"
|
|
latin:code="48"
|
|
latin:keyLabel="0 +"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num1KeyStyle"
|
|
latin:keyLabel="1"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num2KeyStyle"
|
|
latin:keyLabel="2"
|
|
latin:keyHintLabel="ABC"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num3KeyStyle"
|
|
latin:keyLabel="3"
|
|
latin:keyHintLabel="DEF"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num4KeyStyle"
|
|
latin:keyLabel="4"
|
|
latin:keyHintLabel="GHI"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num5KeyStyle"
|
|
latin:keyLabel="5"
|
|
latin:keyHintLabel="JKL"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num6KeyStyle"
|
|
latin:keyLabel="6"
|
|
latin:keyHintLabel="MNO"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num7KeyStyle"
|
|
latin:keyLabel="7"
|
|
latin:keyHintLabel="PQRS"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num8KeyStyle"
|
|
latin:keyLabel="8"
|
|
latin:keyHintLabel="TUV"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="num9KeyStyle"
|
|
latin:keyLabel="9"
|
|
latin:keyHintLabel="WXYZ"
|
|
latin:parentStyle="numberKeyStyle" />
|
|
<key-style
|
|
latin:styleName="numStarKeyStyle"
|
|
latin:code="42"
|
|
latin:keyLabel="\uff0a"
|
|
latin:parentStyle="numKeyStyle" />
|
|
<key-style
|
|
latin:styleName="numSwitchToAltKeyStyle"
|
|
latin:code="@integer/key_switch_alpha_symbol"
|
|
latin:keyLabel="@string/label_to_phone_symbols_key"
|
|
latin:parentStyle="numModeKeyStyle" />
|
|
<key-style
|
|
latin:styleName="numSwitchToNumericKeyStyle"
|
|
latin:code="@integer/key_switch_alpha_symbol"
|
|
latin:keyLabel="@string/label_to_phone_numeric_key"
|
|
latin:parentStyle="numModeKeyStyle" />
|
|
<key-style
|
|
latin:styleName="numSpaceKeyStyle"
|
|
latin:code="@integer/key_space"
|
|
latin:keyIcon="iconSpaceKey"
|
|
latin:keyIconPreview="iconPreviewSpaceKey" />
|
|
</merge>
|