From 0a730b84c41f44129bf5ecc112450d2edf4312c9 Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期二, 15 四月 2025 17:44:56 +0800
Subject: [PATCH] 1.4 返回按钮
---
app/src/main/res/layout/item_reminder.xml | 64 ++++++++++++++++++-------------
1 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/app/src/main/res/layout/item_reminder.xml b/app/src/main/res/layout/item_reminder.xml
index 98b1aa9..8b2df1d 100644
--- a/app/src/main/res/layout/item_reminder.xml
+++ b/app/src/main/res/layout/item_reminder.xml
@@ -1,39 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="12dp"
- android:background="@android:color/white">
+ android:layout_marginHorizontal="8dp"
+ android:layout_marginVertical="4dp"
+ app:cardCornerRadius="8dp"
+ app:cardElevation="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_toStartOf="@id/btn_delete"
- android:orientation="vertical">
+ android:orientation="horizontal"
+ android:padding="16dp">
- <TextView
- android:id="@+id/text_nickname"
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:textSize="16sp"
- android:textColor="#000000" />
+ android:layout_weight="1"
+ android:orientation="vertical">
- <TextView
- android:id="@+id/text_keywords"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- android:textSize="14sp"
- android:textColor="#666666" />
+ <TextView
+ android:id="@+id/categoryNameText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="16sp"
+ android:textStyle="bold" />
+
+ <TextView
+ android:id="@+id/notificationMethodText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dp"
+ android:textColor="@android:color/darker_gray"
+ android:textSize="14sp" />
+
+ </LinearLayout>
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_delete"
+ android:tint="@android:color/darker_gray" />
+
</LinearLayout>
- <ImageButton
- android:id="@+id/btn_delete"
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:layout_alignParentEnd="true"
- android:layout_centerVertical="true"
- android:background="@null"
- android:src="@android:drawable/ic_delete" />
-
-</RelativeLayout>
\ No newline at end of file
+</androidx.cardview.widget.CardView>
\ No newline at end of file
--
Gitblit v1.9.3