Add number password keyboard layout to phone

Bug: 4479212
Change-Id: I230371632d5ba0d940e576a9b8b6668079990004
Cherry-pick: Ia0a284a3
main
Tadashi G. Takaoka 2011-05-27 22:13:06 +09:00
parent 144e97f154
commit fa847fe9b5
1 changed files with 111 additions and 74 deletions

View File

@ -32,83 +32,120 @@
> >
<include <include
latin:keyboardLayout="@xml/kbd_key_styles" /> latin:keyboardLayout="@xml/kbd_key_styles" />
<!-- TODO: Should add number password layout just like the xlarge layout does. --> <include
latin:keyboardLayout="@xml/kbd_numkey_styles" />
<switch> <switch>
<case <case
latin:colorScheme="white" latin:passwordInput="true"
> >
<key-style <Row
latin:styleName="numSpaceKeyStyle" latin:rowEdgeFlags="top"
latin:code="@integer/key_space" >
latin:keyIcon="@drawable/sym_keyboard_space" <Key
latin:iconPreview="@drawable/sym_keyboard_feedback_space" /> latin:keyStyle="num1KeyStyle"
</case> latin:keyEdgeFlags="left" />
<case <Key
latin:colorScheme="black" latin:keyStyle="num2KeyStyle" />
> <Key
<key-style latin:keyStyle="num3KeyStyle" />
latin:styleName="numSpaceKeyStyle" </Row>
latin:code="@integer/key_space" <Row>
latin:keyIcon="@drawable/sym_bkeyboard_space" <Key
latin:iconPreview="@drawable/sym_keyboard_feedback_space" /> latin:keyStyle="num4KeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyStyle="num5KeyStyle" />
<Key
latin:keyStyle="num6KeyStyle" />
</Row>
<Row>
<Key
latin:keyStyle="num7KeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyStyle="num8KeyStyle" />
<Key
latin:keyStyle="num9KeyStyle" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row
latin:rowEdgeFlags="bottom"
>
<Spacer
latin:horizontalGap="26.67%p" />
<Key
latin:keyStyle="num0KeyStyle" />
<Spacer
latin:horizontalGap="26.67%p" />
<Key
latin:keyStyle="returnKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
</case> </case>
<!-- latin:passwordInput="false" -->
<default>
<Row
latin:rowEdgeFlags="top"
>
<Key
latin:keyLabel="1"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="2" />
<Key
latin:keyLabel="3" />
<Key
latin:keyLabel="-"
latin:keyStyle="functionalKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row>
<Key
latin:keyLabel="4"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="5" />
<Key
latin:keyLabel="6" />
<Key
latin:keyLabel=","
latin:keyStyle="functionalKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row>
<Key
latin:keyLabel="7"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="8" />
<Key
latin:keyLabel="9" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row
latin:rowEdgeFlags="bottom"
>
<Key
latin:keyStyle="numSpaceKeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="0" />
<Key
latin:keyLabel="." />
<Key
latin:keyStyle="returnKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
</default>
</switch> </switch>
<Row
latin:rowEdgeFlags="top"
>
<Key
latin:keyLabel="1"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="2" />
<Key
latin:keyLabel="3" />
<Key
latin:keyLabel="-"
latin:keyStyle="functionalKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row>
<Key
latin:keyLabel="4"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="5" />
<Key
latin:keyLabel="6" />
<Key
latin:keyLabel=","
latin:keyStyle="functionalKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row>
<Key
latin:keyLabel="7"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="8" />
<Key
latin:keyLabel="9" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
<Row
latin:rowEdgeFlags="bottom"
>
<Key
latin:keyStyle="numSpaceKeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyLabel="0" />
<Key
latin:keyLabel="." />
<Key
latin:keyStyle="returnKeyStyle"
latin:keyWidth="20%p"
latin:keyEdgeFlags="right" />
</Row>
</Keyboard> </Keyboard>