Skip to content

Commit 038f936

Browse files
committed
add dash and space at the phone number keyboard too
1 parent 81821cc commit 038f936

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

app/src/main/res/xml/keys_numbers.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
33
<Row>
44
<Key
5-
app:keyLabel="1"
65
app:keyEdgeFlags="left"
6+
app:keyLabel="1"
77
app:keyWidth="25%p" />
88
<Key
99
app:keyLabel="2"
@@ -12,16 +12,16 @@
1212
app:keyLabel="3"
1313
app:keyWidth="25%p" />
1414
<Key
15-
app:keyIcon="@drawable/ic_clear_vector"
1615
app:code="-5"
1716
app:isRepeatable="true"
1817
app:keyEdgeFlags="right"
18+
app:keyIcon="@drawable/ic_clear_vector"
1919
app:keyWidth="25%p" />
2020
</Row>
2121
<Row>
2222
<Key
23-
app:keyLabel="4"
2423
app:keyEdgeFlags="left"
24+
app:keyLabel="4"
2525
app:keyWidth="25%p" />
2626
<Key
2727
app:keyLabel="5"
@@ -30,14 +30,14 @@
3030
app:keyLabel="6"
3131
app:keyWidth="25%p" />
3232
<Key
33-
app:keyLabel="-"
3433
app:keyEdgeFlags="right"
34+
app:keyLabel="-"
3535
app:keyWidth="25%p" />
3636
</Row>
3737
<Row>
3838
<Key
39-
app:keyLabel="7"
4039
app:keyEdgeFlags="left"
40+
app:keyLabel="7"
4141
app:keyWidth="25%p" />
4242
<Key
4343
app:keyLabel="8"
@@ -46,15 +46,15 @@
4646
app:keyLabel="9"
4747
app:keyWidth="25%p" />
4848
<Key
49-
app:keyLabel=""
5049
app:code="32"
5150
app:keyEdgeFlags="right"
51+
app:keyLabel=""
5252
app:keyWidth="25%p" />
5353
</Row>
5454
<Row>
5555
<Key
56-
app:keyLabel=","
5756
app:keyEdgeFlags="left"
57+
app:keyLabel=","
5858
app:keyWidth="25%p" />
5959
<Key
6060
app:keyLabel="0"
@@ -63,9 +63,9 @@
6363
app:keyLabel="."
6464
app:keyWidth="25%p" />
6565
<Key
66-
app:keyIcon="@drawable/ic_enter_vector"
6766
app:code="-4"
6867
app:keyEdgeFlags="right"
68+
app:keyIcon="@drawable/ic_enter_vector"
6969
app:keyWidth="25%p" />
7070
</Row>
7171
</Keyboard>

app/src/main/res/xml/keys_phone.xml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
33
<Row>
44
<Key
5-
app:keyLabel="1"
65
app:keyEdgeFlags="left"
6+
app:keyLabel="1"
77
app:keyWidth="25%p" />
88
<Key
99
app:keyLabel="2"
@@ -12,16 +12,16 @@
1212
app:keyLabel="3"
1313
app:keyWidth="25%p" />
1414
<Key
15-
app:keyIcon="@drawable/ic_clear_vector"
1615
app:code="-5"
1716
app:isRepeatable="true"
1817
app:keyEdgeFlags="right"
18+
app:keyIcon="@drawable/ic_clear_vector"
1919
app:keyWidth="25%p" />
2020
</Row>
2121
<Row>
2222
<Key
23-
app:keyLabel="4"
2423
app:keyEdgeFlags="left"
24+
app:keyLabel="4"
2525
app:keyWidth="25%p" />
2626
<Key
2727
app:keyLabel="5"
@@ -31,12 +31,13 @@
3131
app:keyWidth="25%p" />
3232
<Key
3333
app:keyEdgeFlags="right"
34+
app:keyLabel="-"
3435
app:keyWidth="25%p" />
3536
</Row>
3637
<Row>
3738
<Key
38-
app:keyLabel="7"
3939
app:keyEdgeFlags="left"
40+
app:keyLabel="7"
4041
app:keyWidth="25%p" />
4142
<Key
4243
app:keyLabel="8"
@@ -45,29 +46,29 @@
4546
app:keyLabel="9"
4647
app:keyWidth="25%p" />
4748
<Key
48-
app:keyLabel="abc"
49-
app:code="-2"
49+
app:code="32"
5050
app:keyEdgeFlags="right"
51+
app:keyLabel=""
5152
app:keyWidth="25%p" />
5253
</Row>
5354
<Row>
5455
<Key
55-
app:keyLabel="*"
5656
app:keyEdgeFlags="left"
57+
app:keyLabel="*"
5758
app:keyWidth="25%p" />
5859
<Key
5960
app:keyLabel="0"
60-
app:topSmallNumber="+"
61-
app:popupKeyboard="@xml/keyboard_popup_template"
61+
app:keyWidth="25%p"
6262
app:popupCharacters="+-,."
63-
app:keyWidth="25%p" />
63+
app:popupKeyboard="@xml/keyboard_popup_template"
64+
app:topSmallNumber="+" />
6465
<Key
6566
app:keyLabel="#"
6667
app:keyWidth="25%p" />
6768
<Key
68-
app:keyIcon="@drawable/ic_enter_vector"
6969
app:code="-4"
7070
app:keyEdgeFlags="right"
71+
app:keyIcon="@drawable/ic_enter_vector"
7172
app:keyWidth="25%p" />
7273
</Row>
7374
</Keyboard>

0 commit comments

Comments
 (0)