Skip to content

Commit 52cdb75

Browse files
committed
Add symbols keyboard
1 parent b037d02 commit 52cdb75

2 files changed

Lines changed: 110 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## [Unreleased]
55

6+
- Added symbols keyboard
67
- Fixed NullPointerException for `onSinglePointerTouchEvent` of null key
78
- Fixed key press colour change dependent on activity background
89
- Implemented abort on move outside keyboard (by adding 1 px gutter)
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Keyboard
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
app:keyHeight="@dimen/key_height"
5+
app:keyWidth="@dimen/key_width_digit"
6+
app:keyTextSize="@dimen/key_text_font_size"
7+
app:keyTextOffsetY="@dimen/key_text_baseline_correction"
8+
app:keyFillColour="@color/key_fill"
9+
>
10+
<Row
11+
app:keyHeight="@dimen/key_height_digits"
12+
app:keyTextSize="@dimen/key_text_font_size_digits"
13+
app:keyTextOffsetY="@dimen/key_text_baseline_correction_digits"
14+
>
15+
<!-- U+FF1A FULLWIDTH COLON -->
16+
<Key
17+
app:keyWidth="@dimen/key_width_stroke"
18+
app:valueText=""
19+
/>
20+
<!-- Corner brackets: U+300C to U+300F -->
21+
<Key app:valueText="" />
22+
<Key app:valueText="" />
23+
<Key app:valueText="" />
24+
<Key app:valueText="" />
25+
<!-- Angle brackets: U+3008 to U+300B -->
26+
<Key app:valueText="" />
27+
<Key app:valueText="" />
28+
<Key app:valueText="" />
29+
<Key app:valueText="" />
30+
</Row>
31+
<Row>
32+
<!-- U+FF1F FULLWIDTH QUESTION MARK -->
33+
<Key
34+
app:valueText=""
35+
app:keyWidth="@dimen/key_width_stroke"
36+
/>
37+
<!-- U+FF01 FULLWIDTH EXCLAMATION MARK -->
38+
<Key
39+
app:valueText=""
40+
app:keyWidth="@dimen/key_width_stroke"
41+
/>
42+
<!-- U+301C WAVE DASH -->
43+
<Key
44+
app:valueText=""
45+
app:keyWidth="@dimen/key_width_stroke"
46+
/>
47+
<!-- Round brackets: U+FF08, U+FF09 -->
48+
<Key app:valueText="" />
49+
<Key app:valueText="" />
50+
<!-- Lenticular brackets: U+3010, U+3011 -->
51+
<Key app:valueText="" />
52+
<Key app:valueText="" />
53+
</Row>
54+
<Row app:keyWidth="@dimen/key_width_stroke">
55+
<!-- U+3001 IDEOGRAPHIC COMMA -->
56+
<Key app:valueText="" />
57+
<!-- U+FF1B FULLWIDTH SEMICOLON -->
58+
<Key app:valueText="" />
59+
<!-- U+3000 IDEOGRAPHIC SPACE -->
60+
<Key app:valueText=" " />
61+
<!-- U+30FB KATAKANA MIDDLE DOT (because it is fullwidth) -->
62+
<Key app:valueText="" />
63+
<!-- Backspace: U+232B ERASE TO THE LEFT -->
64+
<Key
65+
app:valueText="BACKSPACE"
66+
app:displayText=""
67+
app:isRepeatable="true"
68+
app:keyTextSize="@dimen/key_text_font_size_backspace"
69+
/>
70+
</Row>
71+
<Row
72+
app:keyHeight="@dimen/key_height_space_bar"
73+
app:keyWidth="@dimen/key_width_stroke"
74+
>
75+
<!-- Switch to strokes keyboard: U+31D0, U+31D1, U+31D2 -->
76+
<Key
77+
app:valueText="STROKES"
78+
app:displayText="㇐㇑㇒"
79+
app:keyTextColour="@color/stroke_key_text"
80+
/>
81+
<!-- U+FF0C FULLWIDTH COMMA -->
82+
<Key
83+
app:valueText=""
84+
app:keyWidth="@dimen/key_width_digit"
85+
/>
86+
<!-- Space bar -->
87+
<Key
88+
app:valueText="SPACE"
89+
app:displayText="中文筆畫"
90+
app:isLongPressable="true"
91+
app:keyTextSize="@dimen/key_text_font_size_space_bar"
92+
app:keyTextOffsetY="@dimen/key_text_baseline_correction_space_bar"
93+
app:keyTextColour="@color/space_bar_text"
94+
app:keyWidth="@dimen/key_width_space_bar"
95+
/>
96+
<!-- U+3002 IDEOGRAPHIC FULL STOP -->
97+
<Key
98+
app:valueText=""
99+
app:keyWidth="@dimen/key_width_digit"
100+
/>
101+
<!-- Enter key: U+23CE RETURN SYMBOL -->
102+
<Key
103+
app:valueText="ENTER"
104+
app:displayText=""
105+
app:keyTextSize="@dimen/key_text_font_size_enter_key"
106+
app:keyFillColour="@color/enter_key_fill"
107+
/>
108+
</Row>
109+
</Keyboard>

0 commit comments

Comments
 (0)