From 092bf21368ea824e9dc22467166960219165dc00 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期五, 21 二月 2025 17:32:59 +0800
Subject: [PATCH] 1.我的界面每个item添加点击效果。 2.更新本地数据添加二次确认。

---
 app/src/main/res/layout/fragment_my.xml |   47 +++++++++++++++++++++++++++++++++++++----------
 1 files changed, 37 insertions(+), 10 deletions(-)

diff --git a/app/src/main/res/layout/fragment_my.xml b/app/src/main/res/layout/fragment_my.xml
index 6478c63..7b15501 100644
--- a/app/src/main/res/layout/fragment_my.xml
+++ b/app/src/main/res/layout/fragment_my.xml
@@ -82,12 +82,13 @@
         android:id="@+id/issueListRL"
         android:layout_width="match_parent"
         android:layout_height="@dimen/item_height"
+        android:background="@drawable/my_item_ripple"
         android:layout_below="@+id/headRL_top">
 
         <TextView
             android:layout_width="match_parent"
             android:layout_height="@dimen/item_height"
-            android:background="@color/white"
+
             android:gravity="center_vertical"
             android:paddingLeft="30dp"
             android:text="闂鍒楄〃"
@@ -102,13 +103,39 @@
             android:layout_marginRight="15dp"
             android:src="@drawable/ic_right" />
     </RelativeLayout>
-
-
     <RelativeLayout
-        android:id="@+id/passwordRL"
+        android:id="@+id/inspectListRL"
         android:layout_width="match_parent"
         android:layout_height="@dimen/item_height"
-        android:layout_below="@+id/issueListRL"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/my_item_ripple"
+        android:layout_below="@+id/issueListRL">
+
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="@dimen/item_height"
+            android:gravity="center_vertical"
+            android:paddingLeft="30dp"
+            android:text="宸℃璁板綍"
+            android:layout_marginTop="1dp"
+            android:textColor="@color/black"
+            android:textSize="@dimen/my_item_text_size" />
+
+        <ImageView
+            android:layout_width="25dp"
+            android:layout_height="25dp"
+            android:layout_alignParentRight="true"
+            android:layout_centerVertical="true"
+            android:layout_marginRight="15dp"
+            android:src="@drawable/ic_right" />
+    </RelativeLayout>
+
+    <RelativeLayout
+        android:id="@+id/changePSRL"
+        android:layout_width="match_parent"
+        android:layout_height="@dimen/item_height"
+        android:background="@drawable/my_item_ripple"
+        android:layout_below="@+id/inspectListRL"
         android:layout_marginTop="1dp">
 
         <TextView
@@ -135,14 +162,14 @@
         android:id="@+id/refreshDataRL"
         android:layout_width="match_parent"
         android:layout_height="@dimen/item_height"
-        android:layout_below="@+id/passwordRL"
+        android:background="@drawable/my_item_ripple"
+        android:layout_below="@+id/changePSRL"
         android:layout_marginTop="1dp">
 
         <TextView
             android:id="@+id/refreshDataTV"
             android:layout_width="match_parent"
             android:layout_height="@dimen/item_height"
-            android:background="@color/white"
             android:gravity="center_vertical"
             android:paddingLeft="30dp"
             android:text="鏇存柊鏈湴鏁版嵁"
@@ -161,6 +188,7 @@
         android:id="@+id/cleanDataRL"
         android:layout_width="match_parent"
         android:layout_height="@dimen/item_height"
+        android:background="@drawable/my_item_ripple"
         android:layout_below="@+id/refreshDataRL"
         android:layout_marginTop="1dp">
 
@@ -168,7 +196,6 @@
             android:id="@+id/cleanData"
             android:layout_width="match_parent"
             android:layout_height="@dimen/item_height"
-            android:background="@color/white"
             android:gravity="center_vertical"
             android:paddingLeft="30dp"
             android:text="娓呴櫎缂撳瓨"
@@ -188,6 +215,7 @@
         android:id="@+id/loginOutRL"
         android:layout_width="match_parent"
         android:layout_height="@dimen/item_height"
+        android:background="@drawable/my_item_ripple"
         android:layout_below="@+id/cleanDataRL"
         android:layout_marginTop="1dp">
 
@@ -195,7 +223,6 @@
             android:layout_width="match_parent"
             android:layout_height="@dimen/item_height"
 
-            android:background="@color/white"
             android:gravity="center_vertical"
             android:paddingLeft="30dp"
             android:text="閫�鍑虹櫥褰�"
@@ -216,13 +243,13 @@
         android:id="@+id/versionRL"
         android:layout_width="match_parent"
         android:layout_height="@dimen/item_height"
+        android:background="@drawable/my_item_ripple"
         android:layout_below="@+id/loginOutRL"
         android:layout_marginTop="1dp">
 
         <TextView
             android:layout_width="match_parent"
             android:layout_height="@dimen/item_height"
-            android:background="@color/white"
             android:gravity="center_vertical"
             android:paddingLeft="30dp"
             android:text="褰撳墠鐗堟湰"

--
Gitblit v1.8.0