update 功能开启引导

This commit is contained in:
gallonyin
2022-12-19 16:21:08 +08:00
parent 99660b4788
commit d0915fcc02
8 changed files with 338 additions and 88 deletions

View File

@@ -0,0 +1,234 @@
<?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:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:text="允许开启无障碍服务"
android:textColor="@color/color_333333"
android:textSize="22sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_marginStart="18dp"
android:layout_marginEnd="18dp"
android:text="请开启无障碍服务以使用WorkTool主功能"
android:textColor="@color/color_333333"
android:textSize="14sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:background="@drawable/bg_float_guide">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/rl_guide_title"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iv_guide_icon"
android:layout_width="75dp"
android:layout_height="75dp"
android:layout_marginBottom="15dp"
android:layout_marginStart="20dp"
android:layout_marginTop="18dp"
android:src="@mipmap/ic_launcher" />
<TextView
android:id="@+id/tv_guide_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="18dp"
android:layout_toEndOf="@id/iv_guide_icon"
android:text="@string/app_name"
android:textColor="#000"
android:textSize="22sp" />
</RelativeLayout>
<LinearLayout
android:id="@+id/ll_guide_permit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/rl_guide_title"
android:layout_marginTop="10dp"
android:layout_marginStart="30dp"
android:layout_marginEnd="30dp"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bar_gray">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="10dp"
android:scaleX="0.9"
android:scaleY="0.9"
android:src="@drawable/ic_arrow_back"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="65dp"
android:layout_gravity="center_vertical"
android:textSize="21sp"
android:textColor="@color/white"
android:text="无障碍"
/>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="10dp"
android:layout_gravity="end"
android:src="@drawable/abc_ic_menu_moreoverflow_mtrl_alpha"
/>
</FrameLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/color_b2000000"
/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bar_gray">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="10dp"
android:src="@mipmap/ic_launcher"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="65dp"
android:layout_gravity="center_vertical"
android:textSize="21sp"
android:textColor="@color/white"
android:text="@string/app_name"
/>
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/while_bg">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_gravity="center_vertical"
android:textSize="17sp"
android:textColor="@color/qmui_config_color_black"
android:text="使用WorkTool"
/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="end"
android:src="@drawable/widget_tip_button"
/>
</FrameLayout>
</LinearLayout>
<ImageView
android:id="@+id/iv_over_finger"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_alignParentEnd="true"
android:layout_below="@id/ll_guide_permit"
android:layout_marginEnd="23dp"
android:layout_marginTop="-15dp"
android:src="@drawable/widget_guide_finger"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
android:id="@+id/tv_float_allow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="30dp"
android:layout_marginStart="30dp"
android:layout_marginTop="30dp"
android:background="@drawable/comment_red_btn"
android:gravity="center"
android:paddingBottom="7dp"
android:paddingTop="7dp"
android:text="允许"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_float_reject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="30dp"
android:layout_marginStart="30dp"
android:layout_marginTop="15dp"
android:background="@drawable/comment_gray_btn"
android:gravity="center"
android:paddingBottom="7dp"
android:paddingTop="7dp"
android:text="暂不使用"
android:textColor="@color/white"
android:textSize="16sp" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp">
<CheckBox
android:id="@+id/cb_guide_not"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="2dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@id/cb_guide_not"
android:text="不再询问"
android:textColor="@color/color_333333"
android:textSize="14sp" />
</RelativeLayout>
</LinearLayout>