add: slide menu
This commit is contained in:
15
app/src/main/res/raw/licenses.xml
Normal file
15
app/src/main/res/raw/licenses.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<notices>
|
||||
<notice>
|
||||
<name>Material Dialogs</name>
|
||||
<url>https://github.com/afollestad/material-dialogs</url>
|
||||
<copyright>Copyright (c) 2014-2016 Aidan Michael Follestad</copyright>
|
||||
<license>MIT License</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>Gson</name>
|
||||
<url>https://github.com/google/gson</url>
|
||||
<copyright>Copyright 2008 Google Inc.</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
</notices>
|
||||
23
app/src/main/res/raw/sample_open_running_services.js
Normal file
23
app/src/main/res/raw/sample_open_running_services.js
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
function openRunningServices(){
|
||||
launch("com.android.settings");
|
||||
var i = 0;
|
||||
while(!click("开发者选项")){
|
||||
i++;
|
||||
if(i == 10){
|
||||
toast("开发者选项未开启");
|
||||
return;
|
||||
}
|
||||
scrollDown();
|
||||
}
|
||||
while(!click("正在运行的服务"));
|
||||
}
|
||||
|
||||
|
||||
importClass("android.os.Build.VERSION");
|
||||
|
||||
if(VERSION.SDK_INT < 23){
|
||||
toast("本代码只适用于Android6.0以上");
|
||||
}else{
|
||||
openRunningServices();
|
||||
}
|
||||
5
app/src/main/res/raw/sample_open_wechat_moment.js
Normal file
5
app/src/main/res/raw/sample_open_wechat_moment.js
Normal file
@@ -0,0 +1,5 @@
|
||||
launchApp("微信");
|
||||
sleep(500);
|
||||
click("发现");
|
||||
sleep(500);
|
||||
click("朋友圈");
|
||||
7
app/src/main/res/raw/sample_simple_calculator.js
Normal file
7
app/src/main/res/raw/sample_simple_calculator.js
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
importClass("com.afollestad.materialdialogs.MaterialDialog");
|
||||
|
||||
new MaterialDialog.Builder(context)
|
||||
.title("请输入算式")
|
||||
.contenet("测试")
|
||||
.show();
|
||||
Reference in New Issue
Block a user