refactor(autojs): move inputevent to package core
This commit is contained in:
@@ -34,13 +34,15 @@
|
||||
android:gravity="center_vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<android.support.v7.widget.SwitchCompat
|
||||
<com.stardust.widget.PrefSwitch
|
||||
android:id="@+id/sw_recorded_by_root"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textOff="@string/text_off"
|
||||
android:textOn="@string/text_on"/>
|
||||
android:textOn="@string/text_on"
|
||||
app:defaultValue="false"
|
||||
app:key="@string/key_record_with_root"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
<attr name="icon_color" format="color|reference"/>
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="PrefSwitch">
|
||||
<attr name="key" format="string|reference"/>
|
||||
<attr name="defaultValue" format="boolean"/>
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
|
||||
<declare-styleable name="MaterialEditText">
|
||||
<attr name="met_baseColor" format="color"/>
|
||||
|
||||
@@ -216,6 +216,7 @@
|
||||
<string name="text_edit_script">编辑脚本</string>
|
||||
<string name="text_run_script">运行脚本</string>
|
||||
<string name="text_import_script">导入脚本文件</string>
|
||||
<string name="key_record_with_root">key_record_with_root</string>
|
||||
|
||||
|
||||
<string-array name="record_control_keys">
|
||||
@@ -235,11 +236,13 @@
|
||||
<string-array name="ad_showing_mode_keys">
|
||||
<item>默认</item>
|
||||
<item>每天显示一次</item>
|
||||
<item>关闭广告(╥﹏╥)</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="ad_showing_mode_values">
|
||||
<item>Default</item>
|
||||
<item>OncePerDay</item>
|
||||
<item>Off</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,32 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_no_root_script_record">
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_script_record">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_use_volume_control_record"
|
||||
android:summary="@string/summary_use_volume_control_record"
|
||||
android:title="@string/text_use_volume_control_record"/>
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_script_record_with_root">
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
android:defaultValue="@string/text_none"
|
||||
android:entries="@array/record_control_keys"
|
||||
android:entryValues="@array/record_control_values"
|
||||
android:key="@string/key_start_record_trigger"
|
||||
android:title="@string/text_use_key_to_start_record"
|
||||
/>
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
android:defaultValue="@string/text_none"
|
||||
android:entries="@array/record_control_keys"
|
||||
android:entryValues="@array/record_control_values"
|
||||
android:key="@string/key_stop_record_trigger"
|
||||
android:title="@string/text_use_key_to_stop_record"
|
||||
/>
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_record_with_root"
|
||||
android:title="@string/text_record_with_root"/>
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_script_running">
|
||||
|
||||
Reference in New Issue
Block a user