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 | 102 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 93 insertions(+), 9 deletions(-) diff --git a/app/src/main/res/layout/fragment_map.xml b/app/src/main/res/layout/fragment_map.xml index a897113..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"> @@ -11,8 +12,7 @@ <RelativeLayout android:id="@+id/webViewRL" android:layout_width="match_parent" - android:layout_height="match_parent" - > + android:layout_height="match_parent"> <WebView @@ -79,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" /> @@ -96,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" @@ -272,6 +306,57 @@ android:src="@drawable/ic_edit_btn" /> </LinearLayout> + + <LinearLayout + android:id="@+id/headerLL" + android:layout_width="match_parent" + android:layout_height="25dp" + android:gravity="center" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="璐熻矗浜猴細" + android:textColor="@color/black" + android:textSize="@dimen/common_text_size_little" /> + + <TextView + android:id="@+id/header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLines="1" + android:text="" + android:textColor="@color/black" + android:textSize="@dimen/common_text_size_little" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/phoneLL" + android:layout_width="match_parent" + android:layout_height="25dp" + android:gravity="center" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鑱旂郴鐢佃瘽锛�" + android:textColor="@color/black" + android:textSize="@dimen/common_text_size_little" /> + + <TextView + android:id="@+id/phone" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLines="1" + android:text="" + android:textColor="@color/black" + android:textSize="@dimen/common_text_size_little" /> + </LinearLayout> + <LinearLayout android:layout_width="match_parent" android:layout_height="25dp" @@ -296,7 +381,6 @@ android:textColor="@color/black" android:textSize="@dimen/common_text_size_little" /> </LinearLayout> - </LinearLayout> </ScrollView> -- Gitblit v1.8.0