Files
AutoJs6/app/src/main/res/xml/preferences.xml

145 lines
7.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<android.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:widgetLayout="@layout/preference_custom">
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_appearance">
<Preference
android:layout="@layout/preference_custom"
android:title="@string/text_app_language" />
<Preference
android:layout="@layout/preference_custom"
android:title="@string/text_theme_color" />
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_config">
<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.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.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.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"/>
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_a11y_service">
<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" />
<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" />
<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" />
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_script_running">
<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" />
<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" />
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_script_record"
android:widgetLayout="@layout/preference_custom">
<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" />
<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" />
<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" />
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_about">
<Preference
android:layout="@layout/preference_custom"
android:title="@string/text_check_for_updates" />
<Preference
android:layout="@layout/preference_custom"
android:title="@string/text_about_app_and_developer" />
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
</android.preference.PreferenceScreen>