重新修改了 配置页面的内容,增加修改背景图片的按钮和修改状态栏的颜色的布局,具体功能没有完成。

This commit is contained in:
2024-10-01 20:55:04 +08:00
parent c9da1a08e1
commit 5b9964ece7
3 changed files with 45 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ class SecondActivity : AppCompatActivity() {
// 获取并设置 URL 的 TextView 前景色和背景色
val tvUrl = configView.findViewById<TextView>(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<TextView>(R.id.tvSecretKey)
tvSecretKey.text = "Secret Key: ${config.secretKey.take(4)}..."