mirror of
https://github.com/fankes/TSBattery.git
synced 2025-09-05 02:05:16 +08:00
780 lines
36 KiB
XML
780 lines
36 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<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:background="@color/colorThemeBackground"
|
||
android:orientation="vertical"
|
||
tools:context=".ui.MainActivity"
|
||
tools:ignore="HardcodedText,UseCompoundDrawables,ContentDescription,TooManyViews">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:elevation="0dp"
|
||
android:gravity="center|start"
|
||
android:paddingLeft="15dp"
|
||
android:paddingTop="13dp"
|
||
android:paddingRight="15dp"
|
||
android:paddingBottom="5dp">
|
||
|
||
<TextView
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:singleLine="true"
|
||
android:text="TSBattery"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="25sp"
|
||
android:textStyle="bold" />
|
||
|
||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||
android:id="@+id/title_github_icon"
|
||
style="?android:attr/selectableItemBackgroundBorderless"
|
||
android:layout_width="27dp"
|
||
android:layout_height="27dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:alpha="0.85"
|
||
android:src="@mipmap/ic_github"
|
||
android:tint="@color/colorTextGray" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:id="@+id/main_lin_status"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_marginRight="15dp"
|
||
android:layout_marginBottom="5dp"
|
||
android:background="@drawable/bg_dark_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center">
|
||
|
||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||
android:id="@+id/main_img_status"
|
||
android:layout_width="25dp"
|
||
android:layout_height="25dp"
|
||
android:layout_marginStart="25dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:src="@mipmap/ic_warn"
|
||
android:tint="@color/white" />
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:paddingLeft="20dp"
|
||
android:paddingTop="10dp"
|
||
android:paddingRight="20dp"
|
||
android:paddingBottom="10dp">
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_status"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="5dp"
|
||
android:text="模块未激活"
|
||
android:textColor="@color/white"
|
||
android:textSize="18sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_version"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:text="模块版本:%1"
|
||
android:textColor="@color/white"
|
||
android:textSize="13sp" />
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="7dp"
|
||
android:gravity="center|start"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:src="@mipmap/ic_qq_icon" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_qq_noinstall"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="3dp"
|
||
android:alpha="0.8"
|
||
android:background="@drawable/bg_red_round"
|
||
android:paddingLeft="2dp"
|
||
android:paddingTop="1dp"
|
||
android:paddingRight="2dp"
|
||
android:paddingBottom="1dp"
|
||
android:text="未安装"
|
||
android:textColor="@color/white"
|
||
android:textSize="9sp"
|
||
tools:ignore="SmallSp" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="5dp"
|
||
android:alpha="0.8"
|
||
android:text="兼容"
|
||
android:textColor="@color/white"
|
||
android:textSize="11sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_support_qq"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.8"
|
||
android:ellipsize="end"
|
||
android:singleLine="true"
|
||
android:text="%1"
|
||
android:textColor="@color/white"
|
||
android:textSize="11sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="7dp"
|
||
android:gravity="center|start"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:src="@mipmap/ic_tim_icon" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_tim_noinstall"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="3dp"
|
||
android:alpha="0.8"
|
||
android:background="@drawable/bg_red_round"
|
||
android:paddingLeft="2dp"
|
||
android:paddingTop="1dp"
|
||
android:paddingRight="2dp"
|
||
android:paddingBottom="1dp"
|
||
android:text="未安装"
|
||
android:textColor="@color/white"
|
||
android:textSize="9sp"
|
||
tools:ignore="SmallSp" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="5dp"
|
||
android:alpha="0.8"
|
||
android:text="兼容"
|
||
android:textColor="@color/white"
|
||
android:textSize="11sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_support_tim"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.8"
|
||
android:ellipsize="end"
|
||
android:singleLine="true"
|
||
android:text="%1"
|
||
android:textColor="@color/white"
|
||
android:textSize="11sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center|start"
|
||
android:orientation="horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:src="@mipmap/ic_wechat_icon" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_wechat_noinstall"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="3dp"
|
||
android:alpha="0.8"
|
||
android:background="@drawable/bg_red_round"
|
||
android:paddingLeft="2dp"
|
||
android:paddingTop="1dp"
|
||
android:paddingRight="2dp"
|
||
android:paddingBottom="1dp"
|
||
android:text="未安装"
|
||
android:textColor="@color/white"
|
||
android:textSize="9sp"
|
||
tools:ignore="SmallSp" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="5dp"
|
||
android:alpha="0.8"
|
||
android:text="兼容"
|
||
android:textColor="@color/white"
|
||
android:textSize="11sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/main_text_support_wechat"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.8"
|
||
android:ellipsize="end"
|
||
android:singleLine="true"
|
||
android:text="%1"
|
||
android:textColor="@color/white"
|
||
android:textSize="11sp" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
<androidx.core.widget.NestedScrollView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:layout_marginBottom="10dp"
|
||
android:fadingEdgeLength="10dp"
|
||
android:fillViewport="true"
|
||
android:requiresFadingEdge="vertical">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="horizontal"
|
||
android:padding="15dp">
|
||
|
||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="15dp"
|
||
android:alpha="0.85"
|
||
android:src="@mipmap/ic_about"
|
||
android:tint="@color/colorTextDark" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="5dp"
|
||
android:text="上述列出的版本号为最佳兼容版本,你可以点击进行查看。\n没有标注的版本在适配范围内的 APP 适用性都将有效,但可能不能达到最佳使用效果。\n如果当前版本失效请看下方的联系方式。"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="10sp"
|
||
tools:ignore="SmallSp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:padding="15dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="5dp"
|
||
android:gravity="center|start">
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:src="@mipmap/ic_qq_icon" />
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="10dp"
|
||
android:src="@mipmap/ic_tim_icon" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.85"
|
||
android:singleLine="true"
|
||
android:text="QQ、TIM"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/qqtim_protect_mode_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="启用保守模式 [QQ]"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="此选项默认关闭,默认情况下模块将会干掉 QQ 自身的电源锁控制类,开启后模块将只对系统电源锁生效,如果你的 QQ 视频通话等设置发生了故障,可以尝试开启这个功能,开启后请重启 QQ。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/shut_core_sv_qqtim_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="35dp"
|
||
android:layout_marginBottom="5dp"
|
||
android:text="关闭 CoreService"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="关闭后可能会影响消息接收与视频通话,但是会达到省电效果,如果你的系统拥有推送服务(HMS)或(GMS)可以尝试关闭。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/shut_core_sv_kn_qqtim_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="35dp"
|
||
android:layout_marginBottom="5dp"
|
||
android:text="关闭 CoreService$KernelService"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="这是一个辅助子服务,理论主服务关闭后子服务同样不会被启动,建议在保证消息接收的前提下可以尝试关闭子服务。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:padding="15dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="5dp"
|
||
android:gravity="center|start">
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="10dp"
|
||
android:src="@mipmap/ic_wechat_icon" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.85"
|
||
android:singleLine="true"
|
||
android:text="微信"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/disable_wechat_sv_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="停用省电策略"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="选择停用后模块将不再对微信生效,可解决通话耳边不会黑屏和闪退问题,微信省电功能依然在开(画)发(饼),敬请期待。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:padding="15dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:gravity="center|start">
|
||
|
||
<ImageView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="10dp"
|
||
android:src="@mipmap/ic_shot_icon" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.85"
|
||
android:singleLine="true"
|
||
android:text="快捷操作"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content">
|
||
|
||
<TextView
|
||
android:id="@+id/quick_qq_button"
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="5dp"
|
||
android:layout_weight="1"
|
||
android:background="@drawable/bg_button_round"
|
||
android:gravity="center"
|
||
android:padding="10dp"
|
||
android:singleLine="true"
|
||
android:text="QQ"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/quick_tim_button"
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="5dp"
|
||
android:layout_weight="1"
|
||
android:background="@drawable/bg_button_round"
|
||
android:gravity="center"
|
||
android:padding="10dp"
|
||
android:singleLine="true"
|
||
android:text="TIM"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/quick_wechat_button"
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:background="@drawable/bg_button_round"
|
||
android:gravity="center"
|
||
android:padding="10dp"
|
||
android:singleLine="true"
|
||
android:text="微信"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="15dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:paddingLeft="15dp"
|
||
android:paddingRight="15dp">
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/notify_module_notify_tip_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="通知栏显示守护状态"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="此功能仅支持 QQ、TIM,在开启“系统通知栏显示 QQ、TIM 图标”后系统通知后方将在最后显示“TSBattery 守护中”字样以判断模块已经生效,若不喜欢,你可以随时关闭这个功能。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/notify_module_info_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="35dp"
|
||
android:layout_marginBottom="5dp"
|
||
android:text="提示模块运行信息"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="模块工作正常情况下无需开启,如果你想测试模块是否正常激活,可以打开此提示,开启后将会在启动 QQ、TIM 或微信的时候提示运行信息。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="15dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:paddingLeft="15dp"
|
||
android:paddingRight="15dp">
|
||
|
||
<com.fankes.tsbattery.view.MaterialSwitch
|
||
android:id="@+id/hide_icon_in_launcher_switch"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="在桌面隐藏模块图标"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="15sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.6"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="隐藏模块图标后,模块不会再在桌面显示,你可以在 EdXposed、太极、LSPosed 中找到模块设置并打开,对原生系统无效。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="15dp"
|
||
android:layout_marginRight="15dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:padding="15dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:gravity="center|start">
|
||
|
||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||
android:layout_width="15dp"
|
||
android:layout_height="15dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:alpha="0.85"
|
||
android:src="@mipmap/ic_about"
|
||
android:tint="@color/colorTextGray" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.85"
|
||
android:singleLine="true"
|
||
android:text="使用帮助与说明"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.这个模块是做什么的?\nA.此模块的诞生来源于国内厂商毒瘤 APP 强行霸占后台耗电,QQ 在 8.6.0 版本以后也只是接入了 HMS 推送,但是可笑的是开发组却并没有删除之前疯狂耗电的接收消息方法,于是这个模块就诞生了。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.原理是什么?\nA.模块有两套工作方式,一种是针对 QQ、TIM Hook 掉系统自身的电源锁“WakeLock”使其不能影响系统休眠,这样子在锁屏的时候 QQ、TIM 就可以进入睡眠状态。第二种就是针对 QQ、TIM 删除其自身的无用耗电疯狂循环检测后台强行保活服务。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.如何使用?\nA.目前模块支持 LSPosed、EdXposed 以及太极(无极)框架,在太极和 LSPosed 的作用域中,只需勾选 QQ、TIM、微信即可,模块可以做到即插即用,激活后无需重启手机,重启 QQ、TIM 或微信就可以了。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.激活后一定可以非常省电吗?\nA.并不,模块只能减少 QQ、TIM、微信的耗电,但是请务必记住这一点,省电只是一个理论上的东西,实际水平由你使用的系统和硬件决定,如果你在前台疯狂使用 QQ、TIM,那么照样会耗电,模块只能保证后台运行和锁屏时毒瘤不会消耗过多的无用的电量,仅此而已。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.模块是否需要挂后台?\nA.模块完全不需要挂后台,模块只是一个控制和显示的工具,真正的任务交由 Hook 处理,若出现失效的情况请发送模块运行日志给我们而不是将模块挂后台。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.关于目前微信的适配情况?\nA.微信适配尚在实验阶段,敬请期待。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.如何对单独的 APP 生效模块?\nA.请在 LSPosed 中勾选对应定义域即可,我们不建议使用 EdXposed。"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:alpha="0.8"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="Q.如何反馈问题?\nA.酷安关注 @星夜不荟"
|
||
android:textColor="@color/colorTextDark"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginTop="15dp"
|
||
android:layout_marginRight="15dp"
|
||
android:layout_marginBottom="10dp"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:elevation="0dp"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:paddingLeft="15dp"
|
||
android:paddingRight="15dp">
|
||
|
||
<TextView
|
||
android:id="@+id/link_with_follow_me"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_marginBottom="10dp"
|
||
android:gravity="center"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="恰饭时间\n点击前往酷安关注我,获取我的更多应用"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="16sp" />
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
app:cardCornerRadius="15dp"
|
||
app:cardElevation="0dp">
|
||
|
||
<ImageView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:src="@mipmap/bg_qr_pay" />
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:gravity="center"
|
||
android:lineSpacingExtra="6dp"
|
||
android:text="开发者 酷安 @星夜不荟\n未经允许不得转载、修改复制我的劳动成果"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="16sp" />
|
||
</LinearLayout>
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="15dp"
|
||
android:layout_marginRight="15dp"
|
||
android:layout_marginBottom="10dp"
|
||
android:autoLink="web"
|
||
android:background="@drawable/bg_permotion_round"
|
||
android:lineSpacingExtra="6dp"
|
||
android:padding="10dp"
|
||
android:text="此模块使用 YukiHookAPI 构建。\n点击这里了解更多 https://github.com/fankes/YukiHookAPI"
|
||
android:textColor="@color/colorTextGray"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
</androidx.core.widget.NestedScrollView>
|
||
</LinearLayout> |