feat(app): supports changing default script dir path

This commit is contained in:
hyb1996
2018-06-03 18:05:17 +08:00
parent 7036fa994e
commit 023b8a79d9
22 changed files with 281 additions and 34 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RadioButton
android:id="@+id/none"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="不执行任何操作"/>
<RadioButton
android:id="@+id/copy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="复制原文件夹内容到新文件夹"/>
<RadioButton
android:id="@+id/move"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="移动原文件夹内容到新文件夹"/>
</RadioGroup>

View File

@@ -47,7 +47,6 @@
<string name="text_already_create">Created</string>
<string name="text_delete">Delete</string>
<string name="text_already_delete">Deleted</string>
<string name="folder_name">/Scripts/</string>
<string name="text_error">Error</string>
<string name="text_copy_debug_info">Copy debugging log</string>
<string name="text_it_is_the_developer_of_app">This is a software developer(。・・)</string>
@@ -165,5 +164,6 @@
<string name="text_value">Value</string>
<string name="text_show_widget_infomation">View info</string>
<string name="text_show_layout_hierarchy">View in layout bounds\' view</string>
<string name="default_value_script_dir_path">/Scripts/</string>
</resources>

View File

@@ -49,7 +49,6 @@
<string name="text_already_create">已创建</string>
<string name="text_delete">删除</string>
<string name="text_already_delete">已删除</string>
<string name="folder_name">/脚本/</string>
<string name="text_error">错误</string>
<string name="text_copy_debug_info">复制调试信息</string>
<string name="text_it_is_the_developer_of_app">这是软件开发者(。・・)</string>
@@ -356,4 +355,8 @@
<string name="text_inspect_layout">布局分析</string>
<string name="text_pointer_location">指针位置[Root]</string>
<string name="text_skip">跳过</string>
<string name="text_change_script_dir">更改脚本文件夹路径</string>
<string name="key_script_dir_path">key_script_dir_path</string>
<string name="default_value_script_dir_path">/脚本/</string>
<string name="text_error_copy_file" formatted="true">发生错误: %s</string>
</resources>

View File

@@ -118,6 +118,16 @@
android:layout="@layout/preference_custom"
android:title="@string/text_documentation_source"
/>
<org.autojs.autojs.ui.settings.ScriptDirPathPreference
android:entries="@array/keys_documentation_source"
android:entryValues="@array/values_documentation_source"
android:key="@string/key_script_dir_path"
android:defaultValue="@string/default_value_script_dir_path"
android:layout="@layout/preference_custom"
android:title="@string/text_change_script_dir"
/>
android:
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory