6.2.0 - 重新设计及编写项目文档; 新增多语言适配; 丰富控件选择器功能; 优化夜间模式适配等
This commit is contained in:
12
app/src/main/res/xml/accessibility_service_config.xml
Normal file
12
app/src/main/res/xml/accessibility_service_config.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accessibilityEventTypes="typeAllMask"
|
||||
android:accessibilityFeedbackType="feedbackAllMask"
|
||||
android:accessibilityFlags="flagIncludeNotImportantViews|flagReportViewIds|flagRetrieveInteractiveWindows|flagRequestEnhancedWebAccessibility|flagRequestFilterKeyEvents"
|
||||
android:canPerformGestures="true"
|
||||
android:canRequestEnhancedWebAccessibility="true"
|
||||
android:canRequestFilterKeyEvents="true"
|
||||
android:canRetrieveWindowContent="true"
|
||||
android:canTakeScreenshot="true"
|
||||
android:description="@string/text_a11y_service_description"
|
||||
android:notificationTimeout="0" />
|
||||
15
app/src/main/res/xml/developer_options_preferences.xml
Normal file
15
app/src/main/res/xml/developer_options_preferences.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_updates">
|
||||
|
||||
<Preference
|
||||
app:key="@string/key_updates_checked_states_cleared"
|
||||
app:title="@string/text_clear_updates_checked_states"
|
||||
app:summary="@string/text_clear_updates_checked_states_description" />
|
||||
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -1,162 +1,229 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:widgetLayout="@layout/preference_custom">
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_appearance">
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_appearance">
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_app_language" />
|
||||
<org.autojs.autojs.ui.settings.AppLanguagePreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_app_language"
|
||||
app:title="@string/text_app_language"
|
||||
app:itemKeys="@array/keys_app_language"
|
||||
app:itemValues="@array/values_app_language"
|
||||
app:itemDefaultKey="@string/key_app_language_auto"
|
||||
app:neutralText="@string/dialog_button_system_settings"
|
||||
app:neutralTextShort="@string/dialog_button_system_settings_simplified"
|
||||
app:longClickPrompt="@string/description_app_language_preference"
|
||||
app:onConfirmPrompt="@string/prompt_restart_may_be_needed_for_language_switch" />
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_theme_color" />
|
||||
<org.autojs.autojs.ui.settings.NightModePreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_night_mode"
|
||||
app:title="@string/text_night_mode"
|
||||
app:itemKeys="@array/keys_night_mode"
|
||||
app:itemValues="@array/values_night_mode"
|
||||
app:itemDefaultKey="@string/key_night_mode_follow_system"
|
||||
app:longClickPrompt="@string/description_night_mode_preference"
|
||||
app:longClickPromptMore="@string/description_night_mode_preference_more" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
<org.autojs.autojs.ui.settings.ThemeColorPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_theme_color"
|
||||
app:title="@string/text_theme_color"
|
||||
app:longClickPrompt="@string/description_theme_color_preference" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_config">
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
android:defaultValue="@string/value_documentation_source_default"
|
||||
android:entries="@array/entries_documentation_source"
|
||||
android:entryValues="@array/keys_documentation_source"
|
||||
android:key="@string/key_documentation_source"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_documentation_source" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_config">
|
||||
|
||||
<org.autojs.autojs.ui.settings.ScriptDirPathPreference
|
||||
android:defaultValue="@string/default_value_script_dir_path"
|
||||
android:key="@string/key_script_dir_path"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_change_working_dir" />
|
||||
<org.autojs.autojs.theme.preference.MaterialListPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_documentation_source"
|
||||
app:title="@string/text_documentation_source"
|
||||
app:itemKeys="@array/keys_documentation_source"
|
||||
app:itemValues="@array/values_documentation_source"
|
||||
app:itemDefaultKey="@string/key_documentation_source_local"
|
||||
app:onConfirmPrompt="@string/prompt_restart_is_needed_for_docs_source_switch"
|
||||
app:longClickPrompt="@string/description_documentation_source_preference"
|
||||
app:longClickPromptMore="@string/description_documentation_source_preference_more" />
|
||||
|
||||
<org.autojs.autojs.ui.settings.SetRootModePreference
|
||||
android:defaultValue="@string/value_root_mode_default"
|
||||
android:entries="@array/entries_root_mode"
|
||||
android:entryValues="@array/keys_root_mode"
|
||||
android:key="@string/key_root_mode"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:dialogMessage="@string/text_root_mode_description"
|
||||
android:title="@string/text_root_mode_title" />
|
||||
<org.autojs.autojs.ui.settings.WorkingDirectoryPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_change_working_dir"
|
||||
app:title="@string/text_change_working_dir"
|
||||
app:longClickPrompt="@string/description_change_working_dir_preference" />
|
||||
|
||||
<org.autojs.autojs.ui.settings.SetHiddenFilesPreference
|
||||
android:defaultValue="@string/value_hidden_files_default"
|
||||
android:entries="@array/entries_hidden_files"
|
||||
android:entryValues="@array/keys_hidden_files"
|
||||
android:key="@string/key_hidden_files"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:dialogMessage="@string/text_hidden_files_description"
|
||||
android:title="@string/text_hidden_files_title" />
|
||||
<org.autojs.autojs.ui.settings.RootModePreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_root_mode"
|
||||
app:title="@string/text_root_mode_title"
|
||||
app:itemKeys="@array/keys_root_mode"
|
||||
app:itemValues="@array/values_root_mode"
|
||||
app:itemDefaultKey="@string/key_root_mode_auto_detect"
|
||||
app:longClickPrompt="@string/description_root_mode_preference" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
<org.autojs.autojs.ui.settings.HiddenFilesPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_hidden_files"
|
||||
app:title="@string/text_hidden_files_title"
|
||||
app:itemValues="@array/values_hidden_files"
|
||||
app:itemKeys="@array/keys_hidden_files"
|
||||
app:itemDefaultKey="@string/default_key_hidden_files"
|
||||
app:longClickPrompt="@string/description_hidden_files_preference" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_a11y_service">
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/key_enable_a11y_service_with_root_access"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/summary_enable_a11y_service_with_root_access"
|
||||
android:title="@string/text_enable_a11y_service_with_root_access_automatically" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_a11y_service">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/key_enable_a11y_service_with_secure_settings"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/summary_enable_a11y_service_with_secure_settings"
|
||||
android:title="@string/text_enable_a11y_service_with_secure_settings_automatically" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_enable_a11y_service_with_root_access"
|
||||
app:defaultValue="@bool/pref_enable_a11y_service_with_root_access"
|
||||
app:title="@string/text_enable_a11y_service_with_root_access_automatically"
|
||||
app:summary="@string/summary_enable_a11y_service_with_root_access" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_stable_mode"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/summary_stable_mode"
|
||||
android:title="@string/text_stable_mode" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_enable_a11y_service_with_secure_settings"
|
||||
app:defaultValue="@bool/pref_enable_a11y_service_with_secure_settings"
|
||||
app:title="@string/text_enable_a11y_service_with_secure_settings_automatically"
|
||||
app:summary="@string/summary_enable_a11y_service_with_secure_settings" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_stable_mode"
|
||||
app:defaultValue="@bool/pref_stable_mode"
|
||||
app:title="@string/text_stable_mode"
|
||||
app:summary="@string/summary_stable_mode" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_script_running">
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/key_use_volume_control_running"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_use_volume_to_stop_running" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_script_running">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_guard_mode"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/summary_guard_mode"
|
||||
android:title="@string/text_guard_mode" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_use_volume_control_running"
|
||||
app:defaultValue="@bool/pref_use_volume_control_running"
|
||||
app:title="@string/text_use_volume_key_to_control_script_running"
|
||||
app:summary="@string/summary_use_volume_key_to_stop_running_scripts" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:key="@string/key_guard_mode"
|
||||
app:defaultValue="@bool/pref_guard_mode"
|
||||
app:title="@string/text_guard_mode"
|
||||
app:summary="@string/summary_guard_mode"
|
||||
app:layout="@layout/preference_custom" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_script_record"
|
||||
android:widgetLayout="@layout/preference_custom">
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_use_volume_control_record"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/summary_use_volume_control_record"
|
||||
android:title="@string/text_use_volume_control_record" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_script_record">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_record_toast"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_record_msg" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_use_volume_control_record"
|
||||
app:defaultValue="@bool/pref_use_volume_control_record"
|
||||
app:title="@string/text_use_volume_control_record"
|
||||
app:summary="@string/summary_use_volume_control_record" />
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
android:defaultValue="@string/default_value_binary"
|
||||
android:entries="@array/entries_root_record_out_file_type"
|
||||
android:entryValues="@array/keys_root_record_out_file_type"
|
||||
android:key="@string/key_root_record_out_file_type"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_recorded_output_file_type" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_record_toast"
|
||||
app:defaultValue="@bool/pref_record_toast"
|
||||
app:title="@string/text_record_prompt"
|
||||
app:summary="@string/summary_record_prompt" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
<org.autojs.autojs.theme.preference.MaterialListPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_root_record_out_file_type"
|
||||
app:title="@string/text_recorded_output_file_type"
|
||||
app:itemKeys="@array/keys_root_record_out_file_type"
|
||||
app:itemValues="@array/values_root_record_out_file_type"
|
||||
app:itemDefaultKey="@string/default_key_root_record_out_file_type"
|
||||
app:longClickPrompt="@string/description_root_record_out_file_type_preference" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_updates">
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_compatibility">
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_compatibility_with_classes_for_ver_4_x"
|
||||
app:defaultValue="@bool/pref_compatibility_with_classes_for_ver_4_x"
|
||||
app:title="@string/text_compatibility_with_classes_for_ver_4_x"
|
||||
app:summary="@string/summary_compatibility_with_classes_for_ver_4_x"
|
||||
app:longClickPrompt="@string/description_compatibility_with_classes_for_ver_4_x" />
|
||||
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_extensibility">
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_extending_js_build_in_objects"
|
||||
app:defaultValue="@bool/pref_extending_js_build_in_objects"
|
||||
app:title="@string/text_extending_js_build_in_objects"
|
||||
app:summary="@string/summary_extending_js_build_in_objects"
|
||||
app:longClickPrompt="@string/description_extending_js_build_in_objects" />
|
||||
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_updates">
|
||||
|
||||
<org.autojs.autojs.ui.settings.CheckForUpdatesPreference
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_check_for_updates" />
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_check_for_updates"
|
||||
app:title="@string/text_check_for_updates"
|
||||
app:longClickPrompt="@string/description_check_for_updates_preference" />
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/key_auto_check_for_updates"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_auto_check_for_updates"
|
||||
android:summary="@string/text_auto_check_for_updates_and_show_snackbar" />
|
||||
<org.autojs.autojs.theme.preference.ThemeColorSwitchPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_auto_check_for_updates"
|
||||
app:defaultValue="@bool/pref_auto_check_for_updates"
|
||||
app:title="@string/text_auto_check_for_updates"
|
||||
app:summary="@string/text_auto_check_for_updates_and_show_snackbar" />
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_manage_ignored_updates" />
|
||||
<org.autojs.autojs.ui.settings.ManageIgnoredUpdatesPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_manage_ignored_updates"
|
||||
app:title="@string/text_manage_ignored_updates"
|
||||
app:longClickPrompt="@string/description_manage_ignored_updates_preference" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory
|
||||
android:layout="@layout/preference_category_custom"
|
||||
android:title="@string/text_about">
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_about">
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/text_about_app_and_developer" />
|
||||
<org.autojs.autojs.theme.preference.MaterialDialogPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_about_app_tips"
|
||||
app:title="@string/text_about_app_tips"
|
||||
app:summary="@string/summary_about_app_tips"
|
||||
app:dialogContent="@string/content_about_app_tips"
|
||||
app:positiveText="@string/dialog_button_back"
|
||||
app:longClickPrompt="@string/description_about_app_tips_preference" />
|
||||
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
<org.autojs.autojs.ui.settings.AboutAppAndDeveloperPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_about_app_and_developer"
|
||||
app:title="@string/text_about_app_and_developer"
|
||||
app:longClickPrompt="@string/description_about_app_and_developer_preference" />
|
||||
|
||||
</android.preference.PreferenceScreen>
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user