新增 市场界面

删除 无用资源
This commit is contained in:
hyb1996
2019-01-27 14:22:17 +08:00
parent afc7f35983
commit f2c636d599
29 changed files with 1452 additions and 199 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="5dp"/>
<solid android:color="@color/colorAccent"/>
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#80000000"/>
<padding
android:bottom="3dp"
android:left="12dp"
android:right="12dp"
android:top="3dp"/>
<corners android:radius="16dp"/>
</shape>
</item>
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#40000000"/>
<padding
android:bottom="3dp"
android:left="12dp"
android:right="12dp"
android:top="3dp"/>
<corners android:radius="16dp"/>
</shape>
</item>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<View xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#d8d8d8"/>

View File

@@ -1,9 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.autojs.autojs.theme.widget.ThemeColorSwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.ThemeColorRecyclerView
android:id="@+id/topicsView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
</org.autojs.autojs.theme.widget.ThemeColorSwipeRefreshLayout>

View File

@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
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="wrap_content"
android:layout_marginLeft="4dp"
android:layout_marginTop="2dp"
android:layout_marginRight="4dp"
android:layout_marginBottom="2dp"
app:cardCornerRadius="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/root"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_label_root_permission"
android:paddingLeft="4dp"
android:paddingTop="2dp"
android:paddingRight="4dp"
android:paddingBottom="2dp"
android:textColor="@android:color/white"
android:textSize="12sp"
tools:text="免Root"/>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
android:textColor="@android:color/black"
android:textSize="17sp"
tools:text="Hello, Auto.js"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<org.autojs.autojs.ui.widget.AvatarView
android:id="@+id/avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:scaleType="fitXY"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#202020"
android:textSize="14sp"
tools:text="admin"/>
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#909090"
android:textSize="13sp"
tools:text="admin"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="24dp"
android:layout_marginTop="8dp"
android:orientation="horizontal"
android:paddingTop="3dp"
android:paddingBottom="3dp">
<ImageView
android:id="@+id/download"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/download"
android:tint="#939393"/>
<ImageView
android:id="@+id/upvote"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/upvote"
android:tint="#939393"/>
<ImageView
android:id="@+id/downvote"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/downvote"
android:tint="#939393"/>
<ImageView
android:id="@+id/star"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/star"
android:tint="#939393"/>
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/run_repeatedly"
android:title="@string/text_run_repeatedly"/>
<item
android:id="@+id/create_shortcut"
android:title="@string/text_send_shortcut"/>
<item
android:id="@+id/copy_to_my_script"
android:title="@string/text_copy_to_my_script"/>
<item
android:id="@+id/reset"
android:title="@string/text_reset_to_initial_content"/>
</menu>

View File

@@ -32,13 +32,11 @@
<string name="developer">Stardust</string>
<string name="github">Source Code</string>
<string name="text_already_copy_to_clip">Copied</string>
<string name="donate_developer">Donate</string>
<string name="my_github">https://github.com/hyb1996/NoRootScriptDroid</string>
<string name="share_app">[UiAutomator]Downloadhttp://www.coolapk.com/apk/org.autojs.autojs </string>
<string name="text_floating_window">Floating Window</string>
<string name="text_error_report">Bug Report</string>
<string name="text_press_again_to_exit">Press again to exit</string>
<string name="text_no_running_script">No running scipts</string>
<string name="text_already_stop_n_scripts">%d script(s) is(are) stopped</string>
<string name="text_start_running">Running</string>
<string name="text_open_by_other_apps">Open by other apps</string>
@@ -50,13 +48,11 @@
<string name="text_error">Error</string>
<string name="text_copy_debug_info">Copy debugging log</string>
<string name="text_it_is_the_developer_of_app">This is a software developer(。・・)</string>
<string name="text_lll">lol</string>
<string name="text_please_choose">Please choose </string>
<string name="text_crash">Crash~ o(≧口≦)o</string>
<string name="crash_feedback">(ಥ _ ಥ)Exit or submit a bug report or copy debugging log to the developer(≧∇≦)ノ</string>
<string name="text_clear">Clear</string>
<string name="text_console">Console</string>
<string name="text_report_bug">Submit Bug report</string>
<string name="text_report_fail">Submission Failed</string>
<string name="text_report_succeed">Submitted successfully</string>
<string name="edit_and_run_handle_intent_error">Cannot process file</string>
@@ -66,7 +62,6 @@
<string name="text_recorded">Recording stopped</string>
<string name="text_copy_to_clip">Copy</string>
<string name="text_file_write_fail">File writing failed</string>
<string name="text_join_qq_group">Join in QQ Group</string>
<string name="text_use_volume_control_record">Use the volume keys to control</string>
<string name="summary_use_volume_control_record">Stop or start recording when volume changes</string>
<string name="key_use_volume_control_record">key_use_volume_control_record</string>
@@ -139,7 +134,6 @@
<string name="air_title_issue">Issue</string>
<string name="air_dialog_description_failed_unknown">Unknown error</string>
<string name="air_label_use_email">Send by email</string>
<string name="text_name_should_not_be_empty">Invalid name</string>
<string name="text_import_fail">Import failed</string>
<string name="text_no_brower">No brower installed.</string>
<string name="text_please_choose_a_script">Choose a script</string>
@@ -150,7 +144,6 @@
<string name="text_check_update_error">Check for updates failed</string>
<string name="text_download_url">Download</string>
<string name="text_directly_download">Download now</string>
<string name="text_downloading">Dowloading</string>
<string name="text_download_failed">Download failed</string>
<string name="text_do_not_ask_again_for_this_version">Do not ask again for this version</string>
<string name="text_code_beautify">Beautify code</string>

View File

@@ -3,7 +3,6 @@
<color name="window_background">#202020</color>
<color name="item_background">#333333</color>
<color name="item_background_dark">#252525</color>
<color name="text_color_primary">#7F7F80</color>
<color name="drawer_menu_item_text_color">#9a9a9a</color>
<color name="drawer_menu_group_text_color">#808080</color>
<color name="divider">#111214</color>

View File

@@ -10,14 +10,11 @@
<color name="prefTextColorSecondary">#9DA0A2</color>
<color name="prefTextColorPrimary">#282C2F</color>
<color name="divider_functions_keyboard">#f0f0f0</color>
<color name="color_red">#ef5350</color>
<color name="project_toolbar_color">#777777</color>
<color name="theme_color_black">#111214</color>
<color name="window_background">#FFFFFF</color>
<color name="item_background">#FFFFFF</color>
<color name="item_background_dark">#FFFFFF</color>
<color name="text_color_primary">@android:color/primary_text_light</color>
<color name="text_color_secondary">#484C4F</color>
<color name="text_color_thirdly">#9DA0A2</color>
<color name="divider">#f2f3f5</color>

View File

@@ -33,14 +33,11 @@
<string name="email" translatable="false">hybbbb1996@gmail.com</string>
<string name="github">软件源代码</string>
<string name="text_already_copy_to_clip">已复制到剪贴板</string>
<string name="donate_developer">打赏作者</string>
<string name="my_github">https://github.com/hyb1996/NoRootScriptDroid</string>
<string name="share_app">[Auto.js]下载地址http://www.coolapk.com/apk/org.autojs.autojs </string>
<string name="text_floating_window">悬浮窗</string>
<string name="text_error_report">错误报告</string>
<string name="text_press_again_to_exit">再按一次退出程序</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>
@@ -52,14 +49,12 @@
<string name="text_error">错误</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_please_choose">请选择</string>
<string name="text_crash">崩溃了o(≧口≦)o</string>
<string name="crash_feedback">将会自动提交错误信息。您也可以手动复制调试信息提交给开发者(*^▽^*)或者点击\"退出\"退出程序o(╥﹏╥)o</string>
<string name="text_clear">清空</string>
<string name="text_console">控制台</string>
<string name="text_log">日志</string>
<string name="text_report_bug">提交错误报告</string>
<string name="text_report_fail">提交失败</string>
<string name="text_report_succeed">提交成功</string>
<string name="edit_and_run_handle_intent_error">无法处理文件</string>
@@ -69,7 +64,6 @@
<string name="text_recorded">录制结束</string>
<string name="text_copy_to_clip">复制到剪贴板</string>
<string name="text_file_write_fail">文件写入失败</string>
<string name="text_join_qq_group">加入QQ互赞&amp;交流群</string>
<string name="text_use_volume_control_record">使用音量下键控制</string>
<string name="summary_use_volume_control_record">开启悬浮窗后每次音量下键会开始或停止脚本录制</string>
<string name="key_use_volume_control_record">key_use_volume_control_record</string>
@@ -104,7 +98,6 @@
<string name="key_use_volume_control_running">key_use_volume_control_running</string>
<string name="text_use_volume_to_stop_running">音量上键停止所有脚本</string>
<string name="text_need_to_enable_accessibility_service">需要启用无障碍服务</string>
<string name="text_name_should_not_be_empty">名称不能为空</string>
<string name="text_import_fail">导入失败</string>
<string name="text_no_brower">没有浏览器耶o(╯□╰)o快去安装一个吧</string>
<string name="text_refresh">刷新</string>
@@ -126,7 +119,6 @@
<string name="text_release_notes">更新日志</string>
<string name="text_download_url">下载地址</string>
<string name="text_directly_download">直接下载</string>
<string name="text_downloading">下载中</string>
<string name="text_download_failed">下载失败</string>
<string name="text_do_not_ask_again_for_this_version">此版本不再提示</string>
<string name="text_code_beautify">格式化代码</string>
@@ -151,12 +143,6 @@
<string name="text_show_layout_hierarchy">在布局层次中查看</string>
<string name="text_show_layout_bounds">在布局范围中查看</string>
<string name="text_more">更多</string>
<string name="format_skip">跳过 %d</string>
<string name="key_ad_showing_mode">key_ad_showing_mode</string>
<string name="text_ad">广告</string>
<string name="show_ad">欣赏广告</string>
<string name="text_ad_showing_settings">广告显示设置</string>
<string name="text_default">Default</string>
<string name="text_script_save_successfully">保存成功,请刷新目录</string>
<string name="text_run_repeatedly">循环运行</string>
<string name="text_loop_interval">循环间隔(秒)</string>
@@ -166,7 +152,6 @@
<string name="hint_loop_delay">延迟多少秒后开始循环</string>
<string name="text_number_format_error">格式错误</string>
<string name="text_accessibility_settings">打开无障碍服务</string>
<string name="text_inspect_failed">布局抓取失败,请关闭悬浮窗后动一下页面重试</string>
<string name="text_enable_accessibitliy_service_by_root_failed">使用root权限开启失败</string>
<string name="text_on_progress">处理中</string>
<string name="text_delete_failed">删除失败</string>
@@ -184,7 +169,6 @@
<string name="text_directory">文件夹</string>
<string name="text_file">文件</string>
<string name="text_tutorial">教程</string>
<string name="text_script">脚本</string>
<string name="text_community">社区</string>
<string name="text_manage">管理</string>
<string name="not_login">未登录</string>
@@ -201,12 +185,10 @@
<string name="text_time">时间</string>
<string name="text_size">大小</string>
<string name="text_type">类型</string>
<string name="text_donate">捐赠</string>
<string name="text_editor_theme">编辑器主题</string>
<string name="text_jump_to_line">跳转到行</string>
<string name="text_info">信息</string>
<string name="text_find_or_replace">查找/替换</string>
<string name="text_paste">粘贴</string>
<string name="text_copy_all">复制全部</string>
<string name="text_copy_line">复制行</string>
<string name="text_delete_line">删除行</string>
@@ -219,14 +201,10 @@
<string name="text_find_prev">向上</string>
<string name="hint_regex">正则语法与JavaScript中相同, 可使用$1~9代替被捕获的匹配</string>
<string name="text_jump">跳转</string>
<string name="text_jump_to_def">转到定义</string>
<string name="text_jump_to_end">转到文件末尾</string>
<string name="text_jump_to_start">转到文件开始</string>
<string name="text_jump_to_line_start">转到行首</string>
<string name="text_jump_to_line_end">转到行尾</string>
<string name="text_refactor">重构</string>
<string name="text_select_variable">选择变量</string>
<string name="text_show_type">显示变量类型</string>
<string name="text_exit_floating_window">退出悬浮窗</string>
<string name="text_select_save_path">保存到</string>
<string name="text_cancel_download">取消下载</string>
@@ -267,9 +245,7 @@
<string name="text_register_fail">注册失败</string>
<string name="text_register_succeed">注册成功</string>
<string name="text_sample">示例代码</string>
<string name="text_copy_to_my_script">导入到我的脚本</string>
<string name="text_reset_to_initial_content">重置为初始内容</string>
<string name="text_reset_fail">重置失败</string>
<string name="text_reset_succeed">重置成功</string>
<string name="text_cannot_read_file">无法读取文件</string>
<string name="text_service">服务</string>
@@ -338,9 +314,6 @@
<string name="text_logout">退出登录</string>
<string name="nodebb_error_forbidden">操作失败,请稍后重试</string>
<string name="description_stable_mode">稳定模式通过省略布局细节使脚本抓取布局时更稳定,但同时获取到的屏幕上的控件可能会减少。\n\n重新启动无障碍服务才能生效。</string>
<string name="text_no_phone_state_permission">获取权限失败 :-(</string>
<string name="text_request_permission">重新授予</string>
<string name="info_no_phone_state_permission">软件需要显示启动页广告来维持服务器和软件的开发和维护,因此需要\"读取手机状态\"的权限。\n如果您不喜欢广告可以在设置中设定广告每天只显示一次。</string>
<string name="dex_crcs">2184044085\n3566596539\npJTCkHuhypD9i3UBQ55XQw==RtXsgCTVFA7VYhLeF1TSkg==</string>
<string name="text_size_min_value">8</string>
<string name="text_size_max_value">56</string>
@@ -354,7 +327,6 @@
<string name="text_inspect_layout_hierarchy">布局层次分析</string>
<string name="text_inspect_layout">布局分析</string>
<string name="text_pointer_location">指针位置[Root]</string>
<string name="text_skip">跳过</string>
<string name="text_change_script_dir">更改脚本文件夹路径</string>
<string name="key_script_dir_path">key_script_dir_path</string>
<string name="default_value_script_dir_path">/脚本/</string>
@@ -369,7 +341,6 @@
<string name="text_stop">停止</string>
<string name="text_new_watching_variable">增加监视的变量或表达式</string>
<string name="text_variable_or_expr">变量或表达式</string>
<string name="text_variable">变量</string>
<string name="text_remove_all_breakpoints">删除所有断点</string>
<string name="hint_long_click_run_to_debug">长按\"运行\"图标也可以启动调试</string>
<string name="format_debug_bar_title">调试 [%s]</string>
@@ -379,7 +350,6 @@
<string name="text_result">结果</string>
<string name="text_close">关闭</string>
<string name="text_execute">执行</string>
<string name="text_use_alarm_clock">使用系统闹钟唤醒Auto.js</string>
<string name="error_connect_to_remote">连接失败: %s</string>
<string name="text_are_you_sure_to_delete">确定要删除%s吗</string>
<string name="text_run_on_broadcast">特定事件(广播)触发运行</string>
@@ -387,8 +357,6 @@
<string name="text_class_or_package_name">类/包名</string>
<string name="text_view_docs">查看文档</string>
<string name="text_en_import">import</string>
<string name="key_ad_type">key_ad_type</string>
<string name="text_ad_type_settings">广告类型设置</string>
<string name="text_market">市场</string>
<string name="text_launch_config">运行配置</string>
<string name="text_main_file_name">主脚本名称</string>
@@ -431,8 +399,6 @@
<string name="text_run_on_startup">Auto.js启动时</string>
<string name="text_usage_stats_permission">查看使用统计权限</string>
<string name="description_usage_stats_permission">通过\"查看使用统计\"权限可以获取本设备过去使用应用的情况,从而使获取当前应用(currentPackage)时更准确。</string>
<string name="text_gesture_observing">手势监听</string>
<string name="summary_gesture_observing">开启后将支持events手势事件但Auto.js崩溃时可能会导致屏幕失灵</string>
<string name="text_open_with">打开方式</string>
<plurals name="air_error_short_description" key="air_error_short_description">
<item quantity="one">描述至少要 %d 个字.</item>