Skip to content

Commit

Permalink
add optional hits
Browse files Browse the repository at this point in the history
  • Loading branch information
zfdang committed Oct 19, 2021
1 parent 15b66ec commit fdd46ba
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
29 changes: 28 additions & 1 deletion app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,38 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_wrong"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline_accessibility_permission"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:text="@string/text_optional_hint"
android:textAlignment="center"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


</androidx.constraintlayout.widget.ConstraintLayout>

</TableRow>
Expand Down Expand Up @@ -128,9 +155,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_wrong"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline_power_permission"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<string name="status_title">服务状态</string>
<string name="text_instructions">\"开屏跳过\"是基于安卓系统的无障碍服务来实现自动跳过广告功能的。为了保证程序能正常工作,请检查以下设置:</string>
<string name="text_accessibility_permission">1. 请在\"无障碍\"设置里,打开\"开屏跳过 - 无障碍服务\"。</string>
<string name="text_optional_hint">-- 以下两项为建议设置 --</string>
<string name="text_power_permission">2. 请在\"电池优化\"设置里,设置\"开屏跳过\"为\"不优化\"。</string>
<string name="text_task_manager">3. 请在\"任务管理\"里,锁定\"开屏跳过\"。</string>
<string name="text_status_help">如有问题,请访问网址:</string>
Expand Down

0 comments on commit fdd46ba

Please sign in to comment.