diff options
| author | Jules Aguillon | 2021-12-19 19:44:27 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2021-12-19 19:44:27 +0100 |
| commit | 1cfecbdf48edb65cc0be8b017c8f389f91212a32 (patch) | |
| tree | c15f27b20e63aaf959cbf7d91701b3cfff01b098 /res/xml | |
| parent | 988d8db7e8a6f539a8e6f40c66df7b87571a88e9 (diff) | |
| download | unexpected-keyboard-1cfecbdf48edb65cc0be8b017c8f389f91212a32.tar.gz unexpected-keyboard-1cfecbdf48edb65cc0be8b017c8f389f91212a32.zip | |
Auto-format Java and XML files
Use xmllint.
Re-indent Java files using spaces.
Diffstat (limited to 'res/xml')
| -rw-r--r-- | res/xml/azerty.xml | 82 | ||||
| -rw-r--r-- | res/xml/method.xml | 44 | ||||
| -rw-r--r-- | res/xml/numeric.xml | 50 | ||||
| -rw-r--r-- | res/xml/qwerty.xml | 82 | ||||
| -rw-r--r-- | res/xml/settings.xml | 120 |
5 files changed, 134 insertions, 244 deletions
diff --git a/res/xml/azerty.xml b/res/xml/azerty.xml index f9ca3ea..ae079f0 100644 --- a/res/xml/azerty.xml +++ b/res/xml/azerty.xml @@ -1,44 +1,44 @@ <?xml version="1.0" encoding="utf-8"?> <keyboard> - <row> - <key key0="a" key1="esc" key2="1" key3="&" /> - <key key0="z" key2="2" key4="~" /> - <key key0="e" key2="3" key3=""" key4="\#" /> - <key key0="r" key2="4" key3="'" /> - <key key0="t" key2="5" key3="(" key4=")" /> - <key key0="y" key2="6" key3="-" key4="|" /> - <key key0="u" key2="7" key4="`" /> - <key key0="i" key2="8" key3="_" key4="\\" /> - <key key0="o" key2="9" /> - <key key0="p" key2="0" key4="\@" /> - </row> - <row> - <key key0="q" key1="tab" /> - <key key0="s" key1="accent_ring" /> - <key key0="d" key1="accent_grave" key3="accent_aigu" /> - <key key0="f" key3="{" key4="}" /> - <key key0="g" key3="[" key4="]" /> - <key key0="h" key3="=" key4="+" /> - <key key0="j" key1="accent_trema" key2="accent_circonflexe" key3="^" /> - <key key0="k" key2="€" key3="$" key4="£" /> - <key key0="l" key2="%" /> - <key key0="m" key4="*" /> - </row> - <row> - <key width="2.0" key0="shift" /> - <key key0="w" key3="<" key4=">" /> - <key key0="x" /> - <key key0="c" key1="accent_cedille" key3="," key4="\?" /> - <key key0="v" key3=";" key4="." /> - <key key0="b" key3=":" key4="/" /> - <key key0="n" key1="accent_tilde" key2="§" key4="!" /> - <key width="2.0" key0="backspace" key2="delete" /> - </row> - <row height="0.95"> - <key width="1.8" key0="ctrl" key3="switch_numeric" /> - <key width="1.2" key0="alt" key1="fn" key2="change_method" key3="switch_emoji" key4="config" /> - <key width="4.0" key0="space" /> - <key width="1.2" key1="up" key2="right" key3="left" key4="down" /> - <key width="1.8" key0="enter" /> - </row> + <row> + <key key0="a" key1="esc" key2="1" key3="&"/> + <key key0="z" key2="2" key4="~"/> + <key key0="e" key2="3" key3=""" key4="\#"/> + <key key0="r" key2="4" key3="'"/> + <key key0="t" key2="5" key3="(" key4=")"/> + <key key0="y" key2="6" key3="-" key4="|"/> + <key key0="u" key2="7" key4="`"/> + <key key0="i" key2="8" key3="_" key4="\\"/> + <key key0="o" key2="9"/> + <key key0="p" key2="0" key4="\@"/> + </row> + <row> + <key key0="q" key1="tab"/> + <key key0="s" key1="accent_ring"/> + <key key0="d" key1="accent_grave" key3="accent_aigu"/> + <key key0="f" key3="{" key4="}"/> + <key key0="g" key3="[" key4="]"/> + <key key0="h" key3="=" key4="+"/> + <key key0="j" key1="accent_trema" key2="accent_circonflexe" key3="^"/> + <key key0="k" key2="€" key3="$" key4="£"/> + <key key0="l" key2="%"/> + <key key0="m" key4="*"/> + </row> + <row> + <key width="2.0" key0="shift"/> + <key key0="w" key3="<" key4=">"/> + <key key0="x"/> + <key key0="c" key1="accent_cedille" key3="," key4="\?"/> + <key key0="v" key3=";" key4="."/> + <key key0="b" key3=":" key4="/"/> + <key key0="n" key1="accent_tilde" key2="§" key4="!"/> + <key width="2.0" key0="backspace" key2="delete"/> + </row> + <row height="0.95"> + <key width="1.8" key0="ctrl" key3="switch_numeric"/> + <key width="1.2" key0="alt" key1="fn" key2="change_method" key3="switch_emoji" key4="config"/> + <key width="4.0" key0="space"/> + <key width="1.2" key1="up" key2="right" key3="left" key4="down"/> + <key width="1.8" key0="enter"/> + </row> </keyboard> diff --git a/res/xml/method.xml b/res/xml/method.xml index 0698beb..30097e2 100644 --- a/res/xml/method.xml +++ b/res/xml/method.xml @@ -1,40 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<input-method xmlns:android="http://schemas.android.com/apk/res/android" - android:settingsActivity="juloo.keyboard2.SettingsActivity" - android:supportsSwitchingToNextInputMethod="true"> - <subtype android:label="@string/subtype_label" - android:languageTag="en" - android:imeSubtypeLocale="en_US" - android:imeSubtypeMode="keyboard" - android:isAsciiCapable="true" - android:imeSubtypeExtraValue="default_layout=qwerty" - /> - <subtype android:label="@string/subtype_label" - android:languageTag="fr" - android:imeSubtypeLocale="fr_FR" - android:imeSubtypeMode="keyboard" - android:isAsciiCapable="true" - android:imeSubtypeExtraValue="default_layout=azerty,accents=grave|aigu|circonflexe|cedille|trema" - /> - <subtype android:label="@string/subtype_label" - android:languageTag="es" - android:imeSubtypeLocale="es_ES" - android:imeSubtypeMode="keyboard" - android:isAsciiCapable="true" - android:imeSubtypeExtraValue="default_layout=qwerty,accents=aigu|tilde|trema" - /> - <subtype android:label="@string/subtype_label" - android:languageTag="it" - android:imeSubtypeLocale="it_IT" - android:imeSubtypeMode="keyboard" - android:isAsciiCapable="true" - android:imeSubtypeExtraValue="default_layout=qwerty,accents=grave|aigu" - /> - <subtype android:label="@string/subtype_label" - android:languageTag="sv" - android:imeSubtypeLocale="sv_SE" - android:imeSubtypeMode="keyboard" - android:isAsciiCapable="true" - android:imeSubtypeExtraValue="default_layout=qwerty,accents=aigu|trema|ring" - /> +<input-method xmlns:android="http://schemas.android.com/apk/res/android" android:settingsActivity="juloo.keyboard2.SettingsActivity" android:supportsSwitchingToNextInputMethod="true"> + <subtype android:label="@string/subtype_label" android:languageTag="en" android:imeSubtypeLocale="en_US" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="default_layout=qwerty"/> + <subtype android:label="@string/subtype_label" android:languageTag="fr" android:imeSubtypeLocale="fr_FR" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="default_layout=azerty,accents=grave|aigu|circonflexe|cedille|trema"/> + <subtype android:label="@string/subtype_label" android:languageTag="es" android:imeSubtypeLocale="es_ES" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="default_layout=qwerty,accents=aigu|tilde|trema"/> + <subtype android:label="@string/subtype_label" android:languageTag="it" android:imeSubtypeLocale="it_IT" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="default_layout=qwerty,accents=grave|aigu"/> + <subtype android:label="@string/subtype_label" android:languageTag="sv" android:imeSubtypeLocale="sv_SE" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="default_layout=qwerty,accents=aigu|trema|ring"/> </input-method> diff --git a/res/xml/numeric.xml b/res/xml/numeric.xml index 0d235bd..3e37501 100644 --- a/res/xml/numeric.xml +++ b/res/xml/numeric.xml @@ -1,35 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> <keyboard> <row> - <key width="0.75" key0="esc" key2="~" key4="!" /> - <key width="0.75" key0="(" key2="[" key4="{" /> - <key key0="7" key3="<" key4=">" /> - <key key0="8" key2="∞" /> - <key key0="9" key2="π" /> - <key width="0.75" key0="*" key1="√" key2="×" /> - <key width="0.75" key0="/" key1="%" key3="÷" /> + <key width="0.75" key0="esc" key2="~" key4="!"/> + <key width="0.75" key0="(" key2="[" key4="{"/> + <key key0="7" key3="<" key4=">"/> + <key key0="8" key2="∞"/> + <key key0="9" key2="π"/> + <key width="0.75" key0="*" key1="√" key2="×"/> + <key width="0.75" key0="/" key1="%" key3="÷"/> </row> <row> - <key width="0.75" key0="tab" key1=";" key2="|" key4="\\" /> - <key width="0.75" key0=")" key2="]" key4="}" /> - <key key0="4" /> - <key key0="5" key1="up" key2="right" key3="left" key4="down" /> - <key key0="6" /> - <key width="0.75" key0="+" key1="Σ" key2="$" /> - <key width="0.75" key0="-" key2="^" /> + <key width="0.75" key0="tab" key1=";" key2="|" key4="\\"/> + <key width="0.75" key0=")" key2="]" key4="}"/> + <key key0="4"/> + <key key0="5" key1="up" key2="right" key3="left" key4="down"/> + <key key0="6"/> + <key width="0.75" key0="+" key1="Σ" key2="$"/> + <key width="0.75" key0="-" key2="^"/> </row> <row> - <key shift="0.35" width="1.15" key0="shift" key2="fn" key4="alt" /> - <key key0="1" key1="superscript" key3="subscript" /> - <key key0="2" /> - <key key0="3" /> - <key width="1.15" key0="backspace" key2="delete" /> + <key shift="0.35" width="1.15" key0="shift" key2="fn" key4="alt"/> + <key key0="1" key1="superscript" key3="subscript"/> + <key key0="2"/> + <key key0="3"/> + <key width="1.15" key0="backspace" key2="delete"/> </row> - <row height="0.95"> - <key width="1.5" key0="ctrl" key3="switch_text" /> - <key width="1.5" key0="0" /> - <key width="0.75" key0="." key2="," /> - <key width="0.75" key0="space" key1=""" key2="'" key4="_" /> - <key width="1.5" key0="enter" key2="±" key3="=" /> + <row height="0.95"> + <key width="1.5" key0="ctrl" key3="switch_text"/> + <key width="1.5" key0="0"/> + <key width="0.75" key0="." key2=","/> + <key width="0.75" key0="space" key1=""" key2="'" key4="_"/> + <key width="1.5" key0="enter" key2="±" key3="="/> </row> </keyboard> diff --git a/res/xml/qwerty.xml b/res/xml/qwerty.xml index bde9f02..297e0e7 100644 --- a/res/xml/qwerty.xml +++ b/res/xml/qwerty.xml @@ -1,44 +1,44 @@ <?xml version="1.0" encoding="utf-8"?> <keyboard> - <row> - <key key0="q" key1="esc" key2="1" key3="~" key4="!" /> - <key key0="w" key2="2" key3="\@" /> - <key key0="e" key2="3" key3="\#" /> - <key key0="r" key2="4" key3="$" /> - <key key0="t" key2="5" key3="%" /> - <key key0="y" key2="6" key3="^" /> - <key key0="u" key2="7" key3="&" /> - <key key0="i" key2="8" key3="*" /> - <key key0="o" key2="9" key3="(" key4=")" /> - <key key0="p" key2="0" /> - </row> - <row> - <key shift="0.5" key0="a" key1="tab" key2="`" /> - <key key0="s" key1="accent_ring" /> - <key key0="d" key1="accent_grave" key3="accent_aigu" /> - <key key0="f" /> - <key key0="g" key2="-" key3="_" /> - <key key0="h" key2="=" key3="+" /> - <key key0="j" key1="accent_trema" key2="accent_circonflexe" key4="}" key3="{" /> - <key key0="k" key4="]" key3="[" /> - <key key0="l" key2="|" key3="\\" /> - </row> - <row> - <key width="1.5" key0="shift" /> - <key key0="z" /> - <key key0="x" /> - <key key0="c" key1="accent_cedille" key2="<" key3="." /> - <key key0="v" key2=">" key3="," /> - <key key0="b" key2="\?" key3="/" /> - <key key0="n" key1="accent_tilde" key2=":" key3=";" /> - <key key0="m" key2=""" key3="'" /> - <key width="1.5" key0="backspace" key2="delete" /> - </row> - <row height="0.95"> - <key width="1.8" key0="ctrl" key3="switch_numeric" /> - <key width="1.2" key0="alt" key1="fn" key2="change_method" key3="switch_emoji" key4="config" /> - <key width="4.0" key0="space" /> - <key width="1.2" key1="up" key2="right" key3="left" key4="down" /> - <key width="1.8" key0="enter" /> - </row> + <row> + <key key0="q" key1="esc" key2="1" key3="~" key4="!"/> + <key key0="w" key2="2" key3="\@"/> + <key key0="e" key2="3" key3="\#"/> + <key key0="r" key2="4" key3="$"/> + <key key0="t" key2="5" key3="%"/> + <key key0="y" key2="6" key3="^"/> + <key key0="u" key2="7" key3="&"/> + <key key0="i" key2="8" key3="*"/> + <key key0="o" key2="9" key3="(" key4=")"/> + <key key0="p" key2="0"/> + </row> + <row> + <key shift="0.5" key0="a" key1="tab" key2="`"/> + <key key0="s" key1="accent_ring"/> + <key key0="d" key1="accent_grave" key3="accent_aigu"/> + <key key0="f"/> + <key key0="g" key2="-" key3="_"/> + <key key0="h" key2="=" key3="+"/> + <key key0="j" key1="accent_trema" key2="accent_circonflexe" key4="}" key3="{"/> + <key key0="k" key4="]" key3="["/> + <key key0="l" key2="|" key3="\\"/> + </row> + <row> + <key width="1.5" key0="shift"/> + <key key0="z"/> + <key key0="x"/> + <key key0="c" key1="accent_cedille" key2="<" key3="."/> + <key key0="v" key2=">" key3=","/> + <key key0="b" key2="\?" key3="/"/> + <key key0="n" key1="accent_tilde" key2=":" key3=";"/> + <key key0="m" key2=""" key3="'"/> + <key width="1.5" key0="backspace" key2="delete"/> + </row> + <row height="0.95"> + <key width="1.8" key0="ctrl" key3="switch_numeric"/> + <key width="1.2" key0="alt" key1="fn" key2="change_method" key3="switch_emoji" key4="config"/> + <key width="4.0" key0="space"/> + <key width="1.2" key1="up" key2="right" key3="left" key4="down"/> + <key width="1.8" key0="enter"/> + </row> </keyboard> diff --git a/res/xml/settings.xml b/res/xml/settings.xml index a581896..568b6c1 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -1,102 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <PreferenceCategory android:title="@string/pref_category_layout"> - <ListPreference - android:key="layout" - android:title="@string/pref_layout_title" - android:summary="@string/pref_layout_summary" - 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="@string/pref_accents_summary" - android:defaultValue="@string/pref_accents_default" - android:entries="@array/pref_accents_entries" - android:entryValues="@array/pref_accents_values" /> - </PreferenceCategory> - <PreferenceCategory android:title="@string/pref_category_typing"> - <juloo.common.SlideBarPreference - android:key="sub_value_dist" - android:title="@string/pref_preci_title" - android:summary="@string/pref_preci_summary" - android:defaultValue="10.0" - min="5.0" - max="25.0" - /> - <juloo.common.IntSlideBarPreference - android:key="longpress_timeout" - android:title="@string/pref_long_timeout_title" - android:summary="@string/pref_long_timeout_summary" - android:defaultValue="600" - min="50" - max="2000" - /> - <juloo.common.IntSlideBarPreference - android:key="longpress_interval" - android:title="@string/pref_long_interval_title" - android:summary="@string/pref_long_interval_summary" - android:defaultValue="25" - min="5" - max="100" - /> - <CheckBoxPreference - android:key="precise_repeat" - android:title="@string/pref_precise_repeat_title" - android:summary="@string/pref_precise_repeat_summary" - android:defaultValue="true" - /> - </PreferenceCategory> - <PreferenceCategory android:title="@string/pref_category_vibrate"> - <CheckBoxPreference - android:key="vibrate_enabled" - android:title="@string/pref_vibrate_title" - android:summary="@string/pref_vibrate_summary" - android:defaultValue="true" - /> - <juloo.common.IntSlideBarPreference - android:key="vibrate_duration" - android:title="@string/pref_vibrate_duration_title" - android:summary="@string/pref_vibrate_duration_summary" - android:defaultValue="20" - min="5" - max="50" - /> - </PreferenceCategory> - <PreferenceCategory android:title="@string/pref_category_style"> - <juloo.common.IntSlideBarPreference - android:key="margin_bottom" - android:title="@string/pref_margin_bottom_title" - android:summary="@string/pref_margin_bottom_summary" - android:defaultValue="5" - min="0" - max="100" - /> - <juloo.common.IntSlideBarPreference - android:key="key_height" - android:title="@string/pref_key_height_title" - android:summary="@string/pref_key_height_summary" - android:defaultValue="50" - min="30" - max="90" - /> - <juloo.common.IntSlideBarPreference - android:key="horizontal_margin" - android:title="@string/pref_horizontal_margin_title" - android:summary="@string/pref_horizontal_margin_summary" - android:defaultValue="3" - min="0" - max="20" - /> - <juloo.common.SlideBarPreference - android:key="character_size" - android:title="@string/pref_character_size_title" - android:summary="@string/pref_character_size_summary" - android:defaultValue="1.0" - min="0.8" - max="1.2" - /> - </PreferenceCategory> + <PreferenceCategory android:title="@string/pref_category_layout"> + <ListPreference android:key="layout" android:title="@string/pref_layout_title" android:summary="@string/pref_layout_summary" 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="@string/pref_accents_summary" android:defaultValue="@string/pref_accents_default" android:entries="@array/pref_accents_entries" android:entryValues="@array/pref_accents_values"/> + </PreferenceCategory> + <PreferenceCategory android:title="@string/pref_category_typing"> + <juloo.common.SlideBarPreference android:key="sub_value_dist" android:title="@string/pref_preci_title" android:summary="@string/pref_preci_summary" android:defaultValue="10.0" min="5.0" max="25.0"/> + <juloo.common.IntSlideBarPreference android:key="longpress_timeout" android:title="@string/pref_long_timeout_title" android:summary="@string/pref_long_timeout_summary" android:defaultValue="600" min="50" max="2000"/> + <juloo.common.IntSlideBarPreference android:key="longpress_interval" android:title="@string/pref_long_interval_title" android:summary="@string/pref_long_interval_summary" android:defaultValue="25" min="5" max="100"/> + <CheckBoxPreference android:key="precise_repeat" android:title="@string/pref_precise_repeat_title" android:summary="@string/pref_precise_repeat_summary" android:defaultValue="true"/> + </PreferenceCategory> + <PreferenceCategory android:title="@string/pref_category_vibrate"> + <CheckBoxPreference android:key="vibrate_enabled" android:title="@string/pref_vibrate_title" android:summary="@string/pref_vibrate_summary" android:defaultValue="true"/> + <juloo.common.IntSlideBarPreference android:key="vibrate_duration" android:title="@string/pref_vibrate_duration_title" android:summary="@string/pref_vibrate_duration_summary" android:defaultValue="20" min="5" max="50"/> + </PreferenceCategory> + <PreferenceCategory android:title="@string/pref_category_style"> + <juloo.common.IntSlideBarPreference android:key="margin_bottom" android:title="@string/pref_margin_bottom_title" android:summary="@string/pref_margin_bottom_summary" android:defaultValue="5" min="0" max="100"/> + <juloo.common.IntSlideBarPreference android:key="key_height" android:title="@string/pref_key_height_title" android:summary="@string/pref_key_height_summary" android:defaultValue="50" min="30" max="90"/> + <juloo.common.IntSlideBarPreference android:key="horizontal_margin" android:title="@string/pref_horizontal_margin_title" android:summary="@string/pref_horizontal_margin_summary" android:defaultValue="3" min="0" max="20"/> + <juloo.common.SlideBarPreference android:key="character_size" android:title="@string/pref_character_size_title" android:summary="@string/pref_character_size_summary" android:defaultValue="1.0" min="0.8" max="1.2"/> + </PreferenceCategory> </PreferenceScreen> |
