mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-29 10:43:15 +01:00
Auto-format Java and XML files
Use xmllint. Re-indent Java files using spaces.
This commit is contained in:
parent
988d8db7e8
commit
1cfecbdf48
@ -1,38 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="juloo.keyboard2" android:versionCode="13" android:versionName="1.10.0" android:hardwareAccelerated="false">
|
||||||
package="juloo.keyboard2"
|
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="30"/>
|
||||||
android:versionCode="13"
|
<application android:label="@string/app_name" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:hardwareAccelerated="false">
|
||||||
android:versionName="1.10.0"
|
<service android:name="juloo.keyboard2.Keyboard2" android:label="@string/app_name" android:permission="android.permission.BIND_INPUT_METHOD">
|
||||||
android:hardwareAccelerated="false">
|
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="4"
|
|
||||||
android:targetSdkVersion="30" />
|
|
||||||
|
|
||||||
<application android:label="@string/app_name"
|
|
||||||
android:allowBackup="true"
|
|
||||||
android:icon="@drawable/ic_launcher"
|
|
||||||
android:hardwareAccelerated="false">
|
|
||||||
|
|
||||||
<service android:name="juloo.keyboard2.Keyboard2"
|
|
||||||
android:label="@string/app_name"
|
|
||||||
android:permission="android.permission.BIND_INPUT_METHOD">
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.view.InputMethod"/>
|
<action android:name="android.view.InputMethod"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
<meta-data android:name="android.view.im"
|
<meta-data android:name="android.view.im" android:resource="@xml/method"/>
|
||||||
android:resource="@xml/method" />
|
|
||||||
</service>
|
</service>
|
||||||
|
<activity android:name="juloo.keyboard2.SettingsActivity" android:icon="@drawable/ic_launcher" android:label="@string/settings_activity_label">
|
||||||
<activity android:name="juloo.keyboard2.SettingsActivity"
|
|
||||||
android:icon="@drawable/ic_launcher"
|
|
||||||
android:label="@string/settings_activity_label">
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
@ -1,38 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:hardwareAccelerated="false">
|
||||||
android:orientation="vertical"
|
<juloo.keyboard2.EmojiGroupButtonsBar android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"/>
|
||||||
android:hardwareAccelerated="false">
|
<juloo.keyboard2.EmojiGridView android:id="@+id/emoji_grid" android:background="@color/bg" android:layout_width="fill_parent" android:layout_height="@dimen/emoji_grid_height"/>
|
||||||
<juloo.keyboard2.EmojiGroupButtonsBar
|
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||||
android:orientation="horizontal"
|
<juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" key="switch_back_emoji"/>
|
||||||
android:layout_width="fill_parent"
|
<juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" android:layout_weight="4" key="space"/>
|
||||||
android:layout_height="wrap_content" />
|
<juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" key="backspace"/>
|
||||||
<juloo.keyboard2.EmojiGridView
|
<juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" key="enter"/>
|
||||||
android:id="@+id/emoji_grid"
|
|
||||||
android:background="@color/bg"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="@dimen/emoji_grid_height"
|
|
||||||
/>
|
|
||||||
<LinearLayout
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
>
|
|
||||||
<juloo.keyboard2.EmojiKeyButton
|
|
||||||
style="@style/emojiKeyButton"
|
|
||||||
key="switch_back_emoji"
|
|
||||||
/>
|
|
||||||
<juloo.keyboard2.EmojiKeyButton
|
|
||||||
style="@style/emojiKeyButton"
|
|
||||||
android:layout_weight="4"
|
|
||||||
key="space"
|
|
||||||
/>
|
|
||||||
<juloo.keyboard2.EmojiKeyButton
|
|
||||||
style="@style/emojiKeyButton"
|
|
||||||
key="backspace"
|
|
||||||
/>
|
|
||||||
<juloo.keyboard2.EmojiKeyButton
|
|
||||||
style="@style/emojiKeyButton"
|
|
||||||
key="enter"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -1,5 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<juloo.keyboard2.Keyboard2View xmlns:android="http://schemas.android.com/apk/res/android"
|
<juloo.keyboard2.Keyboard2View xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/bg" android:hardwareAccelerated="false"/>
|
||||||
android:background="@color/bg"
|
|
||||||
android:hardwareAccelerated="false"
|
|
||||||
/>
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
<item>azerty</item>
|
<item>azerty</item>
|
||||||
<item>qwerty</item>
|
<item>qwerty</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string name="pref_accents_default">1</string>
|
<string name="pref_accents_default">1</string>
|
||||||
|
|
||||||
<string-array name="pref_accents_entries">
|
<string-array name="pref_accents_entries">
|
||||||
<item>@string/pref_accents_e_all_installed</item>
|
<item>@string/pref_accents_e_all_installed</item>
|
||||||
<item>@string/pref_accents_e_selected</item>
|
<item>@string/pref_accents_e_selected</item>
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<string name="app_name">Unexpected Keyboard</string>
|
<string name="app_name">Unexpected Keyboard</string>
|
||||||
|
|
||||||
<string name="settings_activity_label">Unexpected Keyboard Settings</string>
|
<string name="settings_activity_label">Unexpected Keyboard Settings</string>
|
||||||
|
|
||||||
<string name="subtype_label">%s</string>
|
<string name="subtype_label">%s</string>
|
||||||
|
|
||||||
<string name="pref_category_layout">Layout</string>
|
<string name="pref_category_layout">Layout</string>
|
||||||
<string name="pref_layout_title">Change keyboard layout</string>
|
<string name="pref_layout_title">Change keyboard layout</string>
|
||||||
<string name="pref_layout_summary">%s</string>
|
<string name="pref_layout_summary">%s</string>
|
||||||
@ -15,14 +11,12 @@
|
|||||||
<item>Azerty</item>
|
<item>Azerty</item>
|
||||||
<item>Qwerty</item>
|
<item>Qwerty</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string name="pref_accents_title">Accents</string>
|
<string name="pref_accents_title">Accents</string>
|
||||||
<string name="pref_accents_summary">%s</string>
|
<string name="pref_accents_summary">%s</string>
|
||||||
<string name="pref_accents_e_all_installed">Show accents for all the installed languages</string>
|
<string name="pref_accents_e_all_installed">Show accents for all the installed languages</string>
|
||||||
<string name="pref_accents_e_selected">Show accents for the selected language</string>
|
<string name="pref_accents_e_selected">Show accents for the selected language</string>
|
||||||
<string name="pref_accents_e_all">Show every accents</string>
|
<string name="pref_accents_e_all">Show every accents</string>
|
||||||
<string name="pref_accents_e_none">Hide accents</string>
|
<string name="pref_accents_e_none">Hide accents</string>
|
||||||
|
|
||||||
<string name="pref_category_typing">Typing</string>
|
<string name="pref_category_typing">Typing</string>
|
||||||
<string name="pref_preci_title">Precision</string>
|
<string name="pref_preci_title">Precision</string>
|
||||||
<string name="pref_preci_summary">Distance of corner values (%spx)</string>
|
<string name="pref_preci_summary">Distance of corner values (%spx)</string>
|
||||||
@ -30,7 +24,6 @@
|
|||||||
<string name="pref_long_timeout_summary">%sms</string>
|
<string name="pref_long_timeout_summary">%sms</string>
|
||||||
<string name="pref_long_interval_title">Long press interval</string>
|
<string name="pref_long_interval_title">Long press interval</string>
|
||||||
<string name="pref_long_interval_summary">%sms</string>
|
<string name="pref_long_interval_summary">%sms</string>
|
||||||
|
|
||||||
<string name="pref_category_vibrate">Vibration</string>
|
<string name="pref_category_vibrate">Vibration</string>
|
||||||
<string name="pref_vibrate_title">Vibration</string>
|
<string name="pref_vibrate_title">Vibration</string>
|
||||||
<string name="pref_vibrate_summary">Enable/Disable vibrations on key down</string>
|
<string name="pref_vibrate_summary">Enable/Disable vibrations on key down</string>
|
||||||
@ -38,7 +31,6 @@
|
|||||||
<string name="pref_vibrate_duration_summary">%sms</string>
|
<string name="pref_vibrate_duration_summary">%sms</string>
|
||||||
<string name="pref_precise_repeat_title">Precise cursor movements</string>
|
<string name="pref_precise_repeat_title">Precise cursor movements</string>
|
||||||
<string name="pref_precise_repeat_summary">Modulate the speed of movements by swiping more or less</string>
|
<string name="pref_precise_repeat_summary">Modulate the speed of movements by swiping more or less</string>
|
||||||
|
|
||||||
<string name="pref_category_style">Style</string>
|
<string name="pref_category_style">Style</string>
|
||||||
<string name="pref_margin_bottom_title">Margin bottom</string>
|
<string name="pref_margin_bottom_title">Margin bottom</string>
|
||||||
<string name="pref_margin_bottom_summary">%sdp</string>
|
<string name="pref_margin_bottom_summary">%sdp</string>
|
||||||
|
@ -1,40 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<input-method xmlns:android="http://schemas.android.com/apk/res/android"
|
<input-method xmlns:android="http://schemas.android.com/apk/res/android" android:settingsActivity="juloo.keyboard2.SettingsActivity" android:supportsSwitchingToNextInputMethod="true">
|
||||||
android:settingsActivity="juloo.keyboard2.SettingsActivity"
|
<subtype android:label="@string/subtype_label" android:languageTag="en" android:imeSubtypeLocale="en_US" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="default_layout=qwerty"/>
|
||||||
android:supportsSwitchingToNextInputMethod="true">
|
<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"
|
<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"/>
|
||||||
android:languageTag="en"
|
<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"/>
|
||||||
android:imeSubtypeLocale="en_US"
|
<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"/>
|
||||||
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>
|
</input-method>
|
||||||
|
@ -1,102 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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">
|
||||||
<PreferenceCategory android:title="@string/pref_category_layout">
|
<PreferenceCategory android:title="@string/pref_category_layout">
|
||||||
<ListPreference
|
<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"/>
|
||||||
android:key="layout"
|
/>
|
||||||
android:title="@string/pref_layout_title"
|
<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"/>
|
||||||
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>
|
||||||
<PreferenceCategory android:title="@string/pref_category_typing">
|
<PreferenceCategory android:title="@string/pref_category_typing">
|
||||||
<juloo.common.SlideBarPreference
|
<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"/>
|
||||||
android:key="sub_value_dist"
|
<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"/>
|
||||||
android:title="@string/pref_preci_title"
|
<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"/>
|
||||||
android:summary="@string/pref_preci_summary"
|
<CheckBoxPreference android:key="precise_repeat" android:title="@string/pref_precise_repeat_title" android:summary="@string/pref_precise_repeat_summary" android:defaultValue="true"/>
|
||||||
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>
|
||||||
<PreferenceCategory android:title="@string/pref_category_vibrate">
|
<PreferenceCategory android:title="@string/pref_category_vibrate">
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference android:key="vibrate_enabled" android:title="@string/pref_vibrate_title" android:summary="@string/pref_vibrate_summary" android:defaultValue="true"/>
|
||||||
android:key="vibrate_enabled"
|
<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"/>
|
||||||
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>
|
||||||
<PreferenceCategory android:title="@string/pref_category_style">
|
<PreferenceCategory android:title="@string/pref_category_style">
|
||||||
<juloo.common.IntSlideBarPreference
|
<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"/>
|
||||||
android:key="margin_bottom"
|
<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"/>
|
||||||
android:title="@string/pref_margin_bottom_title"
|
<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"/>
|
||||||
android:summary="@string/pref_margin_bottom_summary"
|
<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"/>
|
||||||
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>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
Loading…
Reference in New Issue
Block a user