abouttreesummaryrefslogcommitdiff
path: root/res/xml
diff options
context:
space:
mode:
authorJules Aguillon2022-11-26 22:30:45 +0100
committerJules Aguillon2022-11-26 22:30:45 +0100
commite745c812691462380695da2275757e3f29bbbdb2 (patch)
tree1a6c9e62fffa6085455b9e2323533927a01a292d /res/xml
parent09d984a1ab597cceab8a416b3f3cbf60bc1a5525 (diff)
downloadunexpected-keyboard-e745c812691462380695da2275757e3f29bbbdb2.tar.gz
unexpected-keyboard-e745c812691462380695da2275757e3f29bbbdb2.zip
Allow using a custom layout
Add an option for specifying an XML layout description as a string. The option is a bit rough at the moment: - No documentation, users have to be aware of the keyboard's code to use this option. - No error are shown, the layout will fallback to qwerty on error.
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/settings.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index b585ba1..3f76983 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -54,4 +54,7 @@
<juloo.common.IntSlideBarPreference android:key="key_vertical_space" android:title="@string/pref_key_vertical_space" android:summary="%sdp" android:defaultValue="2" min="0" max="8"/>
<juloo.common.IntSlideBarPreference android:key="key_horizontal_space" android:title="@string/pref_key_horizontal_space" android:summary="%sdp" android:defaultValue="2" min="0" max="8"/>
</PreferenceCategory>
+ <PreferenceCategory android:title="@string/pref_category_advanced">
+ <EditTextPreference android:key="custom_layout" android:title="@string/pref_custom_layout_title" android:summary="@string/pref_custom_layout_summary" android:inputType="text|textMultiLine|textLongMessage"/>
+ </PreferenceCategory>
</PreferenceScreen>