\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..16660f1
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index d843f34..94a25f7 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,4 +1,6 @@
-
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/lzwcai_terminal_temi/MainActivity.kt b/app/src/main/java/com/example/lzwcai_terminal_temi/MainActivity.kt
index fcc97d9..46739dc 100644
--- a/app/src/main/java/com/example/lzwcai_terminal_temi/MainActivity.kt
+++ b/app/src/main/java/com/example/lzwcai_terminal_temi/MainActivity.kt
@@ -38,6 +38,6 @@ class MainActivity : AppCompatActivity() {
// 读取配置的 IP 并记录日志
val prefs = getSharedPreferences("app_prefs", Context.MODE_PRIVATE)
val ip = prefs.getString("network_ip", "未设置")
- Log.i("MainActivity", "应用启动完成。目标 IP: $ip")
+ Log.i("MainActivity", getString(R.string.log_init, ip))
}
}
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index eebb14f..690e9eb 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,34 +1,19 @@
-
-
-
-
+ android:layout_width="60dp"
+ android:layout_height="60dp"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentEnd="true"
+ android:background="?attr/selectableItemBackgroundBorderless"
+ android:contentDescription="@string/btn_settings"
+ android:src="@android:drawable/ic_menu_manage" />
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index 508c400..32e8838 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -4,79 +4,111 @@
android:layout_height="match_parent"
android:fillViewport="true">
-
+
+
+
+
-
-
-
+
+ android:layout_below="@id/tvSettingsTitle"
+ android:layout_marginTop="24dp"
+ android:orientation="vertical">
-
+
-
+
-
+
-
+
+
+
-
+
+ android:layout_below="@id/ipConfigLayout"
+ android:layout_marginTop="32dp"
+ android:orientation="vertical">
-
+
+
+
+
+
+
+
+
\ No newline at end of file