Release 2.0.1Beta
This commit is contained in:
BIN
app/src/main/res/drawable/ic_pause_white_24dp.png
Normal file
BIN
app/src/main/res/drawable/ic_pause_white_24dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 90 B |
@@ -124,6 +124,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:visibility="gone"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
@@ -148,6 +149,7 @@
|
||||
android:id="@+id/root_record"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:layout_weight="1"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:gravity="center"
|
||||
|
||||
@@ -49,4 +49,47 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/open_launcher"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:padding="16dp"
|
||||
android:text="@string/text_open_launcher"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/current_package"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:padding="16dp"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/current_activity"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:padding="16dp"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
</LinearLayout>
|
||||
146
app/src/main/res/layout/floating_window_record.xml
Normal file
146
app/src/main/res/layout/floating_window_record.xml
Normal file
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:theme="@style/AppTheme"
|
||||
tools:background="@color/colorPrimary">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:text="@string/text_script_record"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="20sp"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/sw_root_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<android.support.v7.widget.SwitchCompat
|
||||
android:id="@+id/sw_recorded_by_root"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_toLeftOf="@id/sw_recorded_by_root"
|
||||
android:text="@string/text_record_with_root"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/sw_record_toast_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<android.support.v7.widget.SwitchCompat
|
||||
android:id="@+id/sw_record_toast"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_toLeftOf="@id/sw_record_toast"
|
||||
android:text="@string/text_record_msg"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/start_or_pause"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_start_or_pause"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:src="@drawable/ic_play_arrow_white_48dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_start_or_pause"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/text_start_record"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/stop_record"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectableItemBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingTop="16dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:src="@drawable/ic_stop_white_36pt"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/text_stop_record"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#c4c4c4"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -75,13 +75,13 @@
|
||||
<notice>
|
||||
<name>hover</name>
|
||||
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
||||
<url>https://github.com/open-rnd/android-multi-level-listview</url>
|
||||
<url>https://github.com/google/hover</url>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>event-bus</name>
|
||||
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
||||
<url>https://github.com/open-rnd/android-multi-level-listview</url>
|
||||
<url>https://github.com/greenrobot/EventBus</url>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
<color name="colorPrimary">#009688</color>
|
||||
<color name="colorPrimaryOld">#8ea22a</color>
|
||||
<color name="colorPrimaryDark">#00796B</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
<color name="colorAccent">#536DFE</color>
|
||||
<color name="sliding_up_panel_shadow_color">#99444444</color>
|
||||
</resources>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<string name="text_choose_file">选择一个文件</string>
|
||||
<string name="folder_name">/脚本/</string>
|
||||
<string name="text_error">错误</string>
|
||||
<string name="text_load_failed">文档加载失败/(ㄒoㄒ)/~~</string>
|
||||
<string name="text_load_failed">还没有文档/(ㄒoㄒ)/~~</string>
|
||||
<string name="text_copy_debug_info">复制调试信息</string>
|
||||
<string name="text_it_is_the_developer_of_app">这是软件开发者(。・・)ノ</string>
|
||||
<string name="text_lll">略略略</string>
|
||||
@@ -114,7 +114,7 @@
|
||||
<string name="text_file_write_fail">文件写入失败</string>
|
||||
<string name="text_need_enable_accessibility_service">需要打开\"自动操作服务“才能录制脚本</string>
|
||||
<string name="text_join_qq_group">加入QQ交流群</string>
|
||||
<string name="text_copied">已复制剪贴板</string>
|
||||
<string name="text_copied">已复制到剪贴板</string>
|
||||
<string name="text_close">关闭</string>
|
||||
<string name="text_re_record">重新录制</string>
|
||||
<string name="text_use_volume_control_record">使用音量键控制</string>
|
||||
@@ -147,4 +147,36 @@
|
||||
<string name="hint_no_script">点击右上角新建第一个脚本吧~(。・・)ノ</string>
|
||||
<string name="text_reset_background">重置背景图片设置</string>
|
||||
<string name="text_restart_app_to_apply">重启软件生效</string>
|
||||
<string name="text_record_with_root">使用root权限录制</string>
|
||||
<string name="text_record_msg">录制提示</string>
|
||||
<string name="text_text_changed">文字改变</string>
|
||||
<string name="text_scrolled">滑动</string>
|
||||
<string name="text_long_clicked">长按</string>
|
||||
<string name="text_clicked">点击</string>
|
||||
<string name="text_open_launcher">打开主界面</string>
|
||||
<string name="text_copy_to_my_scripts">导入到我的脚本</string>
|
||||
<string name="text_import_succeed">导入成功</string>
|
||||
<string name="text_no_root_script_record">免Root脚本录制</string>
|
||||
<string name="text_script_record_with_root">Root脚本录制</string>
|
||||
<string name="text_use_key_to_start_record">开始录制按键</string>
|
||||
<string name="text_use_key_to_stop_record">结束录制按键</string>
|
||||
<string name="text_none">NONE</string>
|
||||
<string name="key_start_record_trigger">key_start_record_trigger</string>
|
||||
<string name="key_stop_record_trigger">key_stop_record_trigger</string>
|
||||
<string name="text_current_activity">当前活动:</string>
|
||||
<string name="text_current_package">当前应用包名:</string>
|
||||
|
||||
<string-array name="record_control_keys">
|
||||
<item>无</item>
|
||||
<item>音量上键</item>
|
||||
<item>音量下键</item>
|
||||
<item>照相键</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="record_control_values">
|
||||
<item>NONE</item>
|
||||
<item>KEY_VOLUMEUP</item>
|
||||
<item>KEY_VOLUMEDOWN</item>
|
||||
<item>KEY_CAMERA</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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_script_record">
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_no_root_script_record">
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
@@ -10,6 +10,25 @@
|
||||
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:key="@string/key_start_record_trigger"
|
||||
android:defaultValue="@string/text_none"
|
||||
android:entries="@array/record_control_keys"
|
||||
android:entryValues="@array/record_control_values"
|
||||
android:title="@string/text_use_key_to_start_record"
|
||||
/>
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
android:key="@string/key_stop_record_trigger"
|
||||
android:defaultValue="@string/text_none"
|
||||
android:entries="@array/record_control_keys"
|
||||
android:entryValues="@array/record_control_values"
|
||||
android:title="@string/text_use_key_to_stop_record"
|
||||
/>
|
||||
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_edit">
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialEditTextPreference
|
||||
|
||||
Reference in New Issue
Block a user