From 5b9964ece70d5fb82d83b6de04f47fd5c71ef1a4 Mon Sep 17 00:00:00 2001 From: xiaji Date: Tue, 1 Oct 2024 20:55:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=9B=BE=E7=89=87=E7=9A=84=E6=8C=89=E9=92=AE=E5=92=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8A=B6=E6=80=81=E6=A0=8F=E7=9A=84=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E7=9A=84=E5=B8=83=E5=B1=80=EF=BC=8C=E5=85=B7=E4=BD=93?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=B2=A1=E6=9C=89=E5=AE=8C=E6=88=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/flomo_ai/SecondActivity.kt | 3 +- app/src/main/res/layout/activity_second.xml | 47 +++++++++++++++++-- app/src/main/res/layout/item_api_config.xml | 4 +- 3 files changed, 45 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/example/flomo_ai/SecondActivity.kt b/app/src/main/java/com/example/flomo_ai/SecondActivity.kt index 89d6645..063c1e3 100644 --- a/app/src/main/java/com/example/flomo_ai/SecondActivity.kt +++ b/app/src/main/java/com/example/flomo_ai/SecondActivity.kt @@ -132,7 +132,7 @@ class SecondActivity : AppCompatActivity() { // 获取并设置 URL 的 TextView 前景色和背景色 val tvUrl = configView.findViewById(R.id.tvUrl) - tvUrl.text = "URL: ${config.url}" + tvUrl.text = "URL: ${config.url.take(32)}..." tvUrl.setTextColor(Color.BLACK) // 获取并设置 Key 的 TextView 前景色和背景色 @@ -140,7 +140,6 @@ class SecondActivity : AppCompatActivity() { tvKey.text = "Key: ${config.key.take(4)}..." tvKey.setTextColor(Color.BLACK) - // 获取并设置 SecretKey 的 TextView 前景色和背景色 val tvSecretKey = configView.findViewById(R.id.tvSecretKey) tvSecretKey.text = "Secret Key: ${config.secretKey.take(4)}..." diff --git a/app/src/main/res/layout/activity_second.xml b/app/src/main/res/layout/activity_second.xml index 3b92939..44ce69a 100644 --- a/app/src/main/res/layout/activity_second.xml +++ b/app/src/main/res/layout/activity_second.xml @@ -1,5 +1,6 @@ @@ -16,6 +17,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/back_to_main" /> + + android:layout_marginTop="16dp" + android:text="@string/save_config" /> + android:layout_marginTop="16dp" + android:orientation="vertical" /> + + + + +