Add number password keyboard layout to phone (DO NOT MERGE)

Bug: 4479212
Change-Id: Ia0a284a365af99257ed47351bdd3387fd9a53eba
This commit is contained in:
Tadashi G. Takaoka 2011-05-24 10:55:26 +09:00
parent 88100d3651
commit eef3b7b328
3 changed files with 235 additions and 136 deletions

View file

@ -33,6 +33,63 @@
latin:keyboardLayout="@xml/kbd_key_styles" /> latin:keyboardLayout="@xml/kbd_key_styles" />
<include <include
latin:keyboardLayout="@xml/kbd_numkey_styles" /> latin:keyboardLayout="@xml/kbd_numkey_styles" />
<switch>
<case
latin:passwordInput="true"
>
<Row
latin:rowEdgeFlags="top"
>
<Key
latin:keyStyle="num1KeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyStyle="num2KeyStyle" />
<Key
latin:keyStyle="num3KeyStyle" />
<Spacer
latin:horizontalGap="20%p" />
</Row>
<Row>
<Key
latin:keyStyle="num4KeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyStyle="num5KeyStyle" />
<Key
latin:keyStyle="num6KeyStyle" />
<Spacer
latin:horizontalGap="20%p" />
</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>
<default>
<Row <Row
latin:rowEdgeFlags="top" latin:rowEdgeFlags="top"
> >
@ -91,4 +148,6 @@
latin:keyWidth="20%p" latin:keyWidth="20%p"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
</default>
</switch>
</Keyboard> </Keyboard>

View file

@ -81,8 +81,8 @@
<key-style <key-style
latin:styleName="numSpaceKeyStyle" latin:styleName="numSpaceKeyStyle"
latin:code="@integer/key_space" latin:code="@integer/key_space"
latin:iconPreview="@drawable/sym_keyboard_feedback_space" latin:keyIcon="@drawable/sym_keyboard_space"
latin:keyIcon="@drawable/sym_keyboard_space" /> latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
</case> </case>
<case <case
latin:colorScheme="black" latin:colorScheme="black"
@ -143,8 +143,8 @@
<key-style <key-style
latin:styleName="numSpaceKeyStyle" latin:styleName="numSpaceKeyStyle"
latin:code="@integer/key_space" latin:code="@integer/key_space"
latin:iconPreview="@drawable/sym_keyboard_feedback_space" latin:keyIcon="@drawable/sym_bkeyboard_space"
latin:keyIcon="@drawable/sym_keyboard_space" /> latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
</case> </case>
</switch> </switch>
</merge> </merge>

View file

@ -31,27 +31,65 @@
> >
<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"
latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
</case>
<case
latin:colorScheme="black"
> >
<key-style <Key
latin:styleName="numSpaceKeyStyle" latin:keyStyle="num1KeyStyle"
latin:code="@integer/key_space" latin:keyEdgeFlags="left" />
latin:keyIcon="@drawable/sym_bkeyboard_space" <Key
latin:iconPreview="@drawable/sym_keyboard_feedback_space" /> latin:keyStyle="num2KeyStyle" />
<Key
latin:keyStyle="num3KeyStyle" />
<Spacer
latin:horizontalGap="20%p" />
</Row>
<Row>
<Key
latin:keyStyle="num4KeyStyle"
latin:keyEdgeFlags="left" />
<Key
latin:keyStyle="num5KeyStyle" />
<Key
latin:keyStyle="num6KeyStyle" />
<Spacer
latin:horizontalGap="20%p" />
</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>
</switch> <default>
<Row <Row
latin:rowEdgeFlags="top" latin:rowEdgeFlags="top"
> >
@ -110,4 +148,6 @@
latin:keyWidth="20%p" latin:keyWidth="20%p"
latin:keyEdgeFlags="right" /> latin:keyEdgeFlags="right" />
</Row> </Row>
</default>
</switch>
</Keyboard> </Keyboard>