From 9c9a9552e246e506d8b7d6b709c24b7b24b4b9cb Mon Sep 17 00:00:00 2001 From: Sucan <632190820@qq.com> Date: Tue, 10 Mar 2026 15:51:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0IDE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E4=BC=98=E5=8C=96UI=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增或更新多个IDE配置文件(compiler.xml, gradle.xml等)以支持Android项目 - 简化主界面布局,使用ImageButton替换Button,移除不必要的TextView - 优化设置界面布局,使用RelativeLayout和LinearLayout组合改进视觉结构 - 将日志信息字符串提取到资源文件中以支持国际化 - 清理misc.xml中的冗余设备配置信息 --- .idea/AndroidProjectSystem.xml | 6 + .idea/compiler.xml | 6 + .idea/deploymentTargetSelector.xml | 10 + .idea/gradle.xml | 18 + .idea/migrations.xml | 10 + .idea/misc.xml | 789 +----------------- .idea/runConfigurations.xml | 17 + .idea/vcs.xml | 4 +- .../lzwcai_terminal_temi/MainActivity.kt | 2 +- app/src/main/res/layout/activity_main.xml | 37 +- app/src/main/res/layout/activity_settings.xml | 138 +-- 11 files changed, 173 insertions(+), 864 deletions(-) create mode 100644 .idea/AndroidProjectSystem.xml create mode 100644 .idea/compiler.xml create mode 100644 .idea/deploymentTargetSelector.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/migrations.xml create mode 100644 .idea/runConfigurations.xml diff --git a/.idea/AndroidProjectSystem.xml b/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..b86273d --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..b268ef3 --- /dev/null +++ b/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..97f0a8e --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 0bc7aea..74dd639 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,787 +1,10 @@ - - + + + + + + \ 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 @@ - - - -