Skip to content

Commit 759fefb

Browse files
committed
Refactor switch to strokes to strings.xml
but only because it appears in more than one keyboard
1 parent cb646e6 commit 759fefb

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/src/main/res/values/strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
<string name="file_name__about_html">about.html</string>
3232
<!-- Backspace: U+232B ERASE TO THE LEFT -->
3333
<string name="display_text__backspace" translatable="false">⌫</string>
34+
<!-- Switch to strokes: U+31D0, U+31D1, U+31D2 -->
35+
<string name="display_text__switch_to_strokes" translatable="false">
36+
㇐㇑㇒
37+
</string>
3438
<!-- Comma: U+002C COMMA, U+FF0C FULLWIDTH COMMA -->
3539
<string name="value_text__qwerty_comma" translatable="false">,</string>
3640
<string name="value_text__strokes_comma" translatable="false">,</string>

app/src/main/res/xml/keyboard_strokes_symbols_1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<!-- Switch to strokes keyboard: U+31D0, U+31D1, U+31D2 -->
8181
<Key
8282
app:keyValueText="SWITCH_TO_STROKES"
83-
app:keyDisplayText="㇐㇑㇒"
83+
app:keyDisplayText="@string/display_text__switch_to_strokes"
8484
app:keyTextColour="@color/stroke_key_text"
8585
app:keyTextSize="@dimen/font_size__switch_key"
8686
app:keyTextOffsetY="@dimen/baseline_correction__switch_key"

app/src/main/res/xml/keyboard_strokes_symbols_2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<!-- Switch to strokes keyboard: U+31D0, U+31D1, U+31D2 -->
5858
<Key
5959
app:keyValueText="SWITCH_TO_STROKES"
60-
app:keyDisplayText="㇐㇑㇒"
60+
app:keyDisplayText="@string/display_text__switch_to_strokes"
6161
app:keyTextColour="@color/stroke_key_text"
6262
app:keyTextSize="@dimen/font_size__switch_key"
6363
app:keyTextOffsetY="@dimen/baseline_correction__switch_key"

0 commit comments

Comments
 (0)