Skip to content

Commit

Permalink
extract strings
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Nov 9, 2024
1 parent f8d7007 commit ad30bb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="启用"
android:text="@string/enable"
app:layout_constraintStart_toStartOf="@+id/info"
app:layout_constraintTop_toBottomOf="@+id/info" />

Expand All @@ -46,7 +46,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="禁用"
android:text="@string/disable"
app:layout_constraintEnd_toEndOf="@+id/info"
app:layout_constraintTop_toBottomOf="@+id/info" />

Expand All @@ -55,7 +55,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="安装 Shizuku"
android:text="@string/install_shizuku"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="@+id/info"
app:layout_constraintStart_toStartOf="@+id/info"
Expand All @@ -66,7 +66,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="跳转到 Shizuku"
android:text="@string/open_shizuku"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="@+id/info"
app:layout_constraintStart_toStartOf="@+id/info"
Expand All @@ -77,7 +77,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="申请 Shizuku 授权"
android:text="@string/request_shizuku"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="@+id/info"
app:layout_constraintStart_toStartOf="@+id/info"
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<resources>
<string name="app_name">FxxkMIUIAd</string>
<string name="enable">启用</string>
<string name="disable">禁用</string>
<string name="install_shizuku">安装 Shizuku</string>
<string name="open_shizuku">跳转到 Shizuku</string>
<string name="request_shizuku">申请 Shizuku 授权</string>
</resources>

0 comments on commit ad30bb5

Please sign in to comment.