add: assist clip on edit side menu, alipay to donate

This commit is contained in:
hyb1996
2017-02-05 11:02:50 +08:00
parent 3fb16518e4
commit 407066027e
46 changed files with 1173 additions and 555 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".EditActivity">
<android.support.design.widget.AppBarLayout
@@ -62,6 +63,20 @@
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_edit"/>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.design.widget.CoordinatorLayout>
<include layout="@layout/content_edit"/>
<FrameLayout
android:id="@+id/fragment_edit_side_menu"
android:layout_width="280dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@android:color/white"
android:clickable="true"/>
</android.support.v4.widget.DrawerLayout>
</LinearLayout>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingLeft="36dp"
android:paddingRight="16dp"
android:textColor="#444444"
android:textSize="16sp">
<TextView
android:id="@+id/clip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"/>
</LinearLayout>

View File

@@ -10,8 +10,7 @@
<com.jecelyin.editor.v2.view.EditorView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/editor"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?android:attr/actionBarSize">
android:layout_height="match_parent">
<com.jecelyin.editor.v2.core.widget.JecEditText

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="52dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_margin="16dp"/>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:textColor="@android:color/primary_text_light"/>
<ImageView
android:id="@+id/expand_hint"
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_margin="16dp"
android:scaleType="fitEnd"
android:src="@drawable/ic_collapsed"/>
</LinearLayout>

View File

@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:textSize="16sp">
<LinearLayout
android:id="@+id/syntax_and_api"
android:layout_width="match_parent"
android:layout_height="52dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_margin="16dp"
android:src="@drawable/ic_js"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/text_syntax_and_api"
android:textColor="@android:color/primary_text_light"/>
</LinearLayout>
<RelativeLayout
android:id="@+id/assist_service"
android:layout_width="match_parent"
android:layout_height="52dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical">
<ImageView
android:id="@+id/icon_assist_service"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_margin="16dp"
android:src="@drawable/ic_service_green"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toRightOf="@id/icon_assist_service"
android:gravity="center"
android:text="@string/text_assist_service"
android:textColor="@android:color/primary_text_light"/>
<android.support.v7.widget.SwitchCompat
android:id="@+id/sw_assist_service"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginRight="16dp"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/assist_service_notification"
android:layout_width="match_parent"
android:layout_height="52dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical">
<ImageView
android:id="@+id/icon_assist_service_notification"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_margin="16dp"
android:src="@drawable/ic_notifications_green_48dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toRightOf="@id/icon_assist_service_notification"
android:gravity="center"
android:text="@string/text_assist_service_notification"
android:textColor="@android:color/primary_text_light"/>
<android.support.v7.widget.SwitchCompat
android:id="@+id/sw_assist_service_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginRight="16dp"/>
</RelativeLayout>
<com.stardust.scriptdroid.ui.FunctionListRecyclerView
android:id="@+id/function_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<com.stardust.scriptdroid.ui.AssistClipListRecyclerView
android:id="@+id/assist_clip_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingLeft="36dp"
android:paddingRight="16dp"
android:textColor="#444444"
android:textSize="16sp">
<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:gravity="center"/>
<TextView
android:id="@+id/function_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:gravity="center"/>
</RelativeLayout>

View File

@@ -0,0 +1,9 @@
click 点击
longClick 长按
scrollUp 上滑
toast 提示
launch 运行
launchApp 运行应用
select 选择
input 输入
sleep 暂停运行

View File

@@ -51,13 +51,38 @@
<string name="text_email">邮箱</string>
<string name="my_github">https://github.com/hyb1996/NoRootScriptDroid</string>
<string name="share_app">[免Root脚本机器人]下载地址https://github.com/hyb1996/NoRootScriptDroid/releases</string>
<string name="text_assist_service">脚本辅助服务</string>
<string name="text_assist_serivce_notification">通知栏显示脚本辅助开关</string>
<string name="text_assist_service_notification">通知栏显示脚本辅助开关</string>
<string name="text_assist_service">点击定位辅助服务</string>
<string name="text_assist_serivce_notification">通知栏显示点击定位开关</string>
<string name="text_assist_service_notification">通知栏显示点击定位开关</string>
<string name="text_others">其他</string>
<string name="text_assist_mode_enabled">脚本辅助已开启(点击关闭)</string>
<string name="text_assist_mode_disabled">脚本辅助已关闭(点击开启)</string>
<string name="text_assist_mode_enabled">点击定位辅助服务已开启(点击关闭)</string>
<string name="text_assist_mode_disabled">点击定位辅助服务已关闭(点击开启)</string>
<string name="text_error_report">错误报告</string>
<string name="text_sample_hello_big_sister">大姐姐好</string>
<string name="text_press_again_to_exit">再按一次退出程序</string>
<string name="text_function">函数</string>
<string name="sorry_for_crash">\"很抱歉,程序遇到未知错误,即将停止运行\\n错误代码\"</string>
<string name="text_no_running_script">没有正在运行的脚本</string>
<string name="text_already_stop_n_scripts">已停止%d个正在运行的脚本</string>
<string name="text_start_running">开始运行</string>
<string name="text_open_by_other_apps">用其他应用打开</string>
<string name="text_rename">重命名</string>
<string name="text_rename_file_meanwhile">同时重命名原文件</string>
<string name="text_please_input_new_name">请输入新名称</string>
<string name="text_send_shortcut">创建桌面快捷方式</string>
<string name="text_already_create">已创建</string>
<string name="text_delete">删除</string>
<string name="text_delete_absolutly">彻底删除</string>
<string name="text_already_delete">已删除</string>
<string name="text_delete_failed">文件删除失败</string>
<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_copy_debug_info">复制调试信息</string>
<string name="text_it_is_the_developer_of_app">这是软件开发者(。・・)</string>
<string name="text_lll">略略略</string>
<string name="text_choose_email_app">请选择邮件应用</string>
<string name="text_assist_clip">点击定位剪贴板</string>
<string name="text_script_stopped">脚本已停止</string>
</resources>