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_map.xml | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 41 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/fragment_map.xml b/app/src/main/res/layout/fragment_map.xml index 715b846..dc6e3a4 100644 --- a/app/src/main/res/layout/fragment_map.xml +++ b/app/src/main/res/layout/fragment_map.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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="match_parent"> @@ -78,15 +79,31 @@ </RelativeLayout> + + <com.example.expand_button.CustomSearchBar + android:id="@+id/searchButton" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_alignParentRight="true" + android:layout_below="@+id/inspectRL" + android:layout_marginTop="20dp" + android:layout_marginRight="15dp" + android:background="@drawable/ic_blue_background_down" + android:textColor="@color/white" + android:textSize="18sp" /> + + <TextView android:id="@+id/inspectButton" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="40dp" + android:minWidth="40dp" + android:layout_below="@+id/searchButton" android:layout_alignParentRight="true" - android:layout_marginTop="60dp" + android:layout_marginTop="10dp" android:layout_marginRight="15dp" android:background="@drawable/ic_blue_background" - android:padding="10dp" + android:gravity="center" android:text="宸�" android:textColor="@color/white" android:textSize="18sp" /> @@ -95,16 +112,34 @@ <TextView android:id="@+id/putButton" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="40dp" android:layout_alignParentRight="true" - android:layout_marginTop="120dp" + android:layout_marginTop="10dp" + android:layout_below="@+id/inspectButton" android:layout_marginRight="15dp" android:background="@drawable/ic_green_bg" - android:padding="10dp" android:text="鎶�" + android:minWidth="40dp" + android:gravity="center" android:textColor="@color/white" android:textSize="18sp" /> + <com.example.expand_button.ExpandButton + android:id="@+id/expandButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_marginTop="10dp" + android:layout_marginRight="15dp" + android:layout_marginLeft="15dp" + android:layout_below="@+id/putButton" + android:background="@drawable/ic_green_bg" + android:textColor="@color/white" + android:textSize="18sp" + app:animDuration="300" + app:collapsedText="渚�" + app:letterSpacing="10dp" + app:expandedTextSize="12sp"/> <RelativeLayout android:id="@+id/pointRL" -- Gitblit v1.8.0