feat:全局设置增加延迟注入秒数

This commit is contained in:
jiqiu2021
2025-06-27 15:29:55 +08:00
parent 0c713a26da
commit cc4fb60b7b
6 changed files with 150 additions and 3 deletions

View File

@@ -72,6 +72,77 @@
</com.google.android.material.card.MaterialCardView>
<!-- 注入延迟时间设置 -->
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="注入延迟时间"
android:textSize="16sp"
android:textStyle="bold"
android:layout_marginBottom="8dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="设置SO文件注入前的等待时间以确保应用完全初始化"
android:textSize="14sp"
android:textColor="@android:color/darker_gray"
android:layout_marginBottom="12dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="延迟时间(秒):"
android:textSize="14sp"
android:layout_marginEnd="8dp" />
<EditText
android:id="@+id/editInjectionDelay"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:inputType="number"
android:text="2"
android:textAlignment="center"
android:hint="0-60"
android:layout_marginEnd="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="秒"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="建议值2-5秒。某些应用可能需要更长时间。"
android:textSize="12sp"
android:textColor="@android:color/darker_gray"
android:layout_marginTop="8dp" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<!-- 其他设置可以在这里添加 -->
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"