abouttreesummaryrefslogcommitdiff
path: root/res/xml
diff options
context:
space:
mode:
authorGero Streng2022-09-25 02:23:33 +0200
committerJules Aguillon2022-10-23 22:51:36 +0200
commitbaec5a76ee51e86c8256423924331908da75279f (patch)
treecdcd025f45773fc122e4d92f11b1baca6fcd1118 /res/xml
parentea0b873dd826b447c5518f033c9b832fb4be3dbf (diff)
downloadunexpected-keyboard-baec5a76ee51e86c8256423924331908da75279f.tar.gz
unexpected-keyboard-baec5a76ee51e86c8256423924331908da75279f.zip
Add optional NumPad
Shows a NumPad depending on preference: Never/Landscape/Always
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/numeric.xml2
-rw-r--r--res/xml/numpad.xml27
-rw-r--r--res/xml/settings.xml1
3 files changed, 29 insertions, 1 deletions
diff --git a/res/xml/numeric.xml b/res/xml/numeric.xml
index ba1081f..9e6bc69 100644
--- a/res/xml/numeric.xml
+++ b/res/xml/numeric.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<keyboard bottom_row="false" extra_keys="false">
+<keyboard bottom_row="false" extra_keys="false" num_pad="false">
<row>
<key width="0.75" key0="esc" key2="~" key4="!"/>
<key width="0.75" key0="(" key2="[" key4="{"/>
diff --git a/res/xml/numpad.xml b/res/xml/numpad.xml
new file mode 100644
index 0000000..3ddb830
--- /dev/null
+++ b/res/xml/numpad.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<keyboard bottom_row="false">
+ <row>
+ <key key0="7"/>
+ <key key0="8"/>
+ <key key0="9"/>
+ <key key0="/"/>
+ </row>
+ <row>
+ <key key0="4"/>
+ <key key0="5"/>
+ <key key0="6"/>
+ <key key0="*"/>
+ </row>
+ <row>
+ <key key0="1"/>
+ <key key0="2"/>
+ <key key0="3"/>
+ <key key0="-"/>
+ </row>
+ <row height="0.95">
+ <key key0="0"/>
+ <key key0="."/>
+ <key key0="="/>
+ <key key0="+"/>
+ </row>
+</keyboard> \ No newline at end of file
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index e91c460..93badef 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -3,6 +3,7 @@
<PreferenceCategory android:title="@string/pref_category_layout">
<ListPreference android:key="layout" android:title="@string/pref_layout_title" android:summary="%s" android:defaultValue="system" android:entries="@array/pref_layout_entries" android:entryValues="@array/pref_layout_values"/>
<ListPreference android:key="accents" android:title="@string/pref_accents_title" android:summary="%s" android:defaultValue="1" android:entries="@array/pref_accents_entries" android:entryValues="@array/pref_accents_values"/>
+ <ListPreference android:key="show_numpad" android:title="@string/pref_show_numpad_title" android:summary="%s" android:defaultValue="1" android:entries="@array/pref_show_numpad_entries" android:entryValues="@array/pref_show_numpad_values"/>
<ListPreference android:key="programming_layout" android:title="@string/pref_programming_layout_title" android:summary="%s" android:defaultValue="none" android:entries="@array/pref_programming_layout_entries" android:entryValues="@array/pref_programming_layout_values"/>
<PreferenceScreen android:title="@string/pref_extra_keys_title">
<juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="0"/>