abouttreesummaryrefslogcommitdiff
path: root/res/values
diff options
context:
space:
mode:
authorJules Aguillon2023-07-18 00:31:32 +0200
committerJules Aguillon2023-07-19 23:30:58 +0200
commit458e17bf31c9ef6b4dfadd56dd0c0dfb709eb32c (patch)
tree7e4bd6dd451f13071fd85ebecb984388c236fd39 /res/values
parent324aa26ba4d062edcbbecab9de2f0a8f2c3c8dfc (diff)
downloadunexpected-keyboard-458e17bf31c9ef6b4dfadd56dd0c0dfb709eb32c.tar.gz
unexpected-keyboard-458e17bf31c9ef6b4dfadd56dd0c0dfb709eb32c.zip
Add custom extra keys preference
This is a new section in the extra keys option that allows to enter arbitrary strings which are then added to the keyboard. A new string is needed for the title of the section, Android's icons and strings are used as much as possible to avoid adding more strings. Keys are stored in the preferences as a JSON array of strings.
Diffstat (limited to 'res/values')
-rw-r--r--res/values/strings.xml1
-rw-r--r--res/values/values.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 3c963f3..c278493 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -27,6 +27,7 @@
<string name="pref_numpad_layout_e_high_first">High digits first</string>
<string name="pref_numpad_layout_e_low_first">Low digits first</string>
<string name="pref_extra_keys_title">Add keys to the keyboard</string>
+ <string name="pref_extra_keys_custom">Add custom keys</string>
<string name="pref_extra_keys_internal">Select keys to add to the keyboard</string>
<string name="pref_second_layout_title">Secondary layout</string>
<string name="pref_second_layout_none">None</string>
diff --git a/res/values/values.xml b/res/values/values.xml
index c15118e..737e7db 100644
--- a/res/values/values.xml
+++ b/res/values/values.xml
@@ -5,6 +5,7 @@
<dimen name="emoji_type_button_height">56dp</dimen>
<dimen name="emoji_grid_height">250dp</dimen>
<dimen name="emoji_text_size">28dp</dimen>
+ <dimen name="pref_button_size">28dp</dimen>
<bool name="debug_logs" product="debug">true</bool>
<bool name="debug_logs" product="default">false</bool>
</resources>