abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/values/attrs.xml6
-rw-r--r--res/values/strings.xml1
-rw-r--r--res/xml/settings.xml19
3 files changed, 25 insertions, 1 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
new file mode 100644
index 0000000..b012a7c
--- /dev/null
+++ b/res/values/attrs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <declare-styleable name="ExtraKeyCheckBoxPreference">
+ <attr name="index" format="integer"/>
+ </declare-styleable>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 78042ee..513b88f 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -12,6 +12,7 @@
<string name="pref_accents_e_none">Hide accents</string>
<string name="pref_autocapitalisation_title">Automatic capitalisation</string>
<string name="pref_autocapitalisation_summary">Press Shift at the beginning of a sentence</string>
+ <string name="pref_extra_keys_title">Add keys to the keyboard</string>
<string name="pref_programming_layout_title">Keyboard layout for programming</string>
<string name="pref_programming_layout_none">None</string>
<string name="pref_category_typing">Typing</string>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 6a87c4f..afe1546 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -1,9 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<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="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"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="1"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="2"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="3"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="4"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="5"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="6"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="7"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="8"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="9"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="10"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="11"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="12"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="13"/>
+ <juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="14"/>
+ </PreferenceScreen>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_category_typing">
<CheckBoxPreference android:key="autocapitalisation" android:title="@string/pref_autocapitalisation_title" android:summary="@string/pref_autocapitalisation_summary" android:defaultValue="true"/>