rebuild apk

This commit is contained in:
hyb1996
2017-02-13 17:46:16 +08:00
parent 0c57e18577
commit 04b4303899
37 changed files with 380 additions and 102 deletions

View File

@@ -50,13 +50,13 @@
android:src="@drawable/ic_android_eat_js"/>
<TextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/icon"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:gravity="center"
android:text="@string/version"
android:textColor="#777777"
android:textSize="14sp"/>

View File

@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:title="@string/app_name"
android:title="@string/_app_name"
app:popupTheme="@style/AppTheme.PopupOverlay">
<LinearLayout

View File

@@ -23,8 +23,19 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:title="@string/app_name"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
android:title="@string/_app_name"
app:popupTheme="@style/AppTheme.PopupOverlay">
<ImageView
android:id="@+id/add"
android:layout_width="?android:attr/actionBarSize"
android:layout_height="match_parent"
android:layout_gravity="right"
android:foreground="?selectableItemBackgroundBorderless"
android:padding="12dp"
android:src="@drawable/ic_add_white_48dp"/>
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>

View File

@@ -16,14 +16,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/ic_add_white_48dp"/>
</RelativeLayout>

View File

@@ -28,7 +28,6 @@
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:gravity="center"
android:text="@string/version"
android:textColor="@android:color/white"
android:textSize="14sp"/>
@@ -40,7 +39,7 @@
android:layout_above="@id/version"
android:layout_marginLeft="8dp"
android:gravity="center"
android:text="@string/app_name"
android:text="@string/_app_name"
android:textColor="@android:color/white"
android:textSize="28sp"/>

View File

@@ -12,7 +12,7 @@
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:contentDescription="@string/app_name"/>
android:contentDescription="@string/_app_name"/>
<TextView
android:id="@+id/name"

View File

@@ -15,7 +15,7 @@
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:contentDescription="@string/app_name"
android:contentDescription="@string/_app_name"
android:scaleType="fitCenter"
android:src="@drawable/ic_robot_green"/>
@@ -62,7 +62,7 @@
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:contentDescription="@string/app_name"
android:contentDescription="@string/_app_name"
android:src="@drawable/ic_edit_gray_48dp"/>
</FrameLayout>
@@ -80,7 +80,7 @@
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:contentDescription="@string/app_name"
android:contentDescription="@string/_app_name"
android:src="@drawable/ic_navigation_show_more_vertical_512"/>
</FrameLayout>

View File

@@ -2,27 +2,5 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.stardust.scriptdroid.MainActivity">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
<item
android:id="@+id/action_disable_service"
android:orderInCategory="200"
android:title="@string/action_disable_service"
app:showAsAction="never"/>
<item
android:id="@+id/action_test"
android:orderInCategory="300"
android:title="@string/action_test"
app:showAsAction="never"/>
<item
android:id="@+id/action_exit"
android:orderInCategory="400"
android:title="@string/action_exit"
app:showAsAction="never"/>
</menu>

View File

@@ -24,6 +24,7 @@
* `launchApp(appName)` 运存应用名称为appName的应用。例如launchApp("QQ")。不同应用名称可能相同,这时只运行其中某一个应用。
* `notStopped` 若当前脚本处于运行状态时返回`true`, 否则返回`false`。对于某些循环, 例如`while(true)`,请用`while(notStopped())`代替,以免死循环造成的脚本无法正常停止。
* `isStoppd` 若当前脚本处于停止状态时返回`true`, 否则返回`false`
* `shell(cmd, root=false)` 执行shell命令cmd, 其中参数root表示是否以root权限执行默认为false。例如`shell("input keyevent 26", true); //锁屏`
###四、全局变量
* `context` ApplicationContext参见安卓[android.content.Context](https://developer.android.com/reference/android/content/Context.html)
> 这里的context由于是ApplicationContext是不可见的不能用于dialog和其他UI相关。如果要显示弹窗或者视图请启动UI模式代码的第一行为`"ui";`既可并使用activity代替。

View File

@@ -36,5 +36,16 @@
<url>https://github.com/fython/AlipayZeroSdk</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Console</name>
<copyright>Copyright 2015 Josef Raska</copyright>
<url>https://github.com/jraska/Console</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>android-issue-reporter</name>
<copyright/>
<url>https://github.com/HeinrichReimer/android-issue-reporter</url>
<license>Apache Software License 2.0</license>
</notice>
</notices>

View File

@@ -1,3 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
</resources>

View File

@@ -1,6 +1,5 @@
<resources>
<string name="app_name">免Root脚本精灵</string>
<string name="version">Version 1.17.0212</string>
<string name="_app_name">免Root脚本精灵</string>
<string name="action_settings">设置</string>
<string name="action_disable_service">关闭服务</string>
<string name="text_accessibility_service_description">使脚本自动操作(点击、长按、滑动等)所需,若关闭则只能执行不涉及自动操作的脚本。</string>
@@ -38,7 +37,7 @@
<string name="text_about">关于</string>
<string name="text_licenses">开放源代码许可</string>
<string name="text_do_not_remind_again">不再提示</string>
<string name="text_sample_open_what_moment">示例:打开朋友圈</string>
<string name="text_sample_alipay_scan">支付宝扫一扫</string>
<string name="text_sample_open_running_services">示例:打开正在运行的服务(安卓6.0+)</string>
<string name="text_sample_simple_calculator">示例:简单计算器</string>
<string name="copyright">Copyright©2016 All right reserves.</string>
@@ -87,12 +86,17 @@
<string name="assist_mode_notice">\"点击区域辅助服务\"是在要点击的区域不是文本时使用的,参见\"语法与API\"。\"点击区域辅助服务\"只有在\"自动操作服务\"开启时才有效。</string>
<string name="text_please_choose">请选择</string>
<string name="text_crash">崩溃了o(≧口≦)o</string>
<string name="crash_feedback">点击\"退出\"退出程序(ಥ _ ಥ)或者复制调试信息反馈给开发者(≧∇≦)ノ</string>
<string name="crash_feedback">点击\"退出\"退出程序(ಥ _ ಥ)或者提交错误报告或者复制调试信息反馈给开发者(≧∇≦)ノ</string>
<string name="text_cannot_create_dialog_when_app_invisible">无法在后台显示弹框,脚本已停止运行</string>
<string name="text_sample_for_qq_chat">示例QQ强制聊天</string>
<string name="text_re_import_samples">重新导入示例脚本文件</string>
<string name="text_re_import_succeed">导入成功,重新打开应用生效</string>
<string name="text_re_import_succeed">导入成功</string>
<string name="text_fail">失败</string>
<string name="text_clear">清空</string>
<string name="text_console">控制台</string>
<string name="text_sample_wechat_scan">微信扫一扫</string>
<string name="text_report_bug">提交错误报告</string>
<string name="text_bug_report">Bug Report</string>
<string name="text_report_fail">提交失败</string>
<string name="text_report_succeed">提交成功</string>
</resources>

View File

@@ -8,6 +8,15 @@
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="IssueReportTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="cardBackgroundColor">#FFFFFF</item>
<item name="colorButtonNormal">?colorAccent</item>
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>