From e5a090685df3d5e96a37b141d9a1d002d36f16f2 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期五, 14 二月 2025 16:53:43 +0800
Subject: [PATCH] 1.web地图添加管网显示。 2.安卓原生添加管网信息的获取。 3.安卓原生添加管网信息的本地持久化(SQLite数据库)。 4.实现图例用户的选择状态按钮的持久化。 5.实现自定义搜索按钮的实现。 6.实现搜索后弹出界面的相关功能开发。
---
app/src/main/res/layout/fragment_my.xml | 134 +++++++++++++++++++++++++++++++++-----------
1 files changed, 99 insertions(+), 35 deletions(-)
diff --git a/app/src/main/res/layout/fragment_my.xml b/app/src/main/res/layout/fragment_my.xml
index 4b443bb..6478c63 100644
--- a/app/src/main/res/layout/fragment_my.xml
+++ b/app/src/main/res/layout/fragment_my.xml
@@ -7,14 +7,20 @@
android:background="@color/bg_color">
- <include
+ <TextView
android:id="@+id/title"
- layout="@layout/top_title" />
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/title_height"
+ android:background="@color/title_color"
+ android:gravity="center"
+ android:text="鎴戠殑"
+ android:textColor="@color/white"
+ android:textSize="@dimen/title_center_text_size" />
<View
android:layout_width="match_parent"
- android:layout_height="200dp"
+ android:layout_height="150dp"
android:layout_below="@+id/title"
android:background="@color/title_color" />
@@ -22,7 +28,7 @@
<RelativeLayout
android:id="@+id/headRL_top"
android:layout_width="match_parent"
- android:layout_height="190dp"
+ android:layout_height="150dp"
android:layout_below="@+id/title"
android:layout_marginLeft="25dp"
android:layout_marginTop="25dp"
@@ -64,7 +70,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
- android:text="18311594524"
+ android:text=""
android:textColor="@color/grey" />
</LinearLayout>
@@ -73,7 +79,7 @@
<RelativeLayout
- android:id="@+id/headRL"
+ android:id="@+id/issueListRL"
android:layout_width="match_parent"
android:layout_height="@dimen/item_height"
android:layout_below="@+id/headRL_top">
@@ -81,11 +87,10 @@
<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="澶村儚"
+ android:text="闂鍒楄〃"
android:textColor="@color/black"
android:textSize="@dimen/my_item_text_size" />
@@ -98,37 +103,12 @@
android:src="@drawable/ic_right" />
</RelativeLayout>
- <RelativeLayout
- android:id="@+id/versionRL"
- android:layout_width="match_parent"
- android:layout_height="@dimen/item_height"
- android:layout_below="@+id/headRL"
- 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="褰撳墠鐗堟湰"
- 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/passwordRL"
android:layout_width="match_parent"
android:layout_height="@dimen/item_height"
- android:layout_below="@+id/versionRL"
+ android:layout_below="@+id/issueListRL"
android:layout_marginTop="1dp">
<TextView
@@ -151,12 +131,64 @@
android:layout_marginRight="15dp"
android:src="@drawable/ic_right" />
</RelativeLayout>
+ <RelativeLayout
+ android:id="@+id/refreshDataRL"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/item_height"
+ android:layout_below="@+id/passwordRL"
+ 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="鏇存柊鏈湴鏁版嵁"
+ 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/cleanDataRL"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/item_height"
+ android:layout_below="@+id/refreshDataRL"
+ android:layout_marginTop="1dp">
+
+ <TextView
+ 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="娓呴櫎缂撳瓨"
+ 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/loginOutRL"
android:layout_width="match_parent"
android:layout_height="@dimen/item_height"
- android:layout_below="@+id/passwordRL"
+ android:layout_below="@+id/cleanDataRL"
android:layout_marginTop="1dp">
<TextView
@@ -171,6 +203,7 @@
android:textSize="@dimen/my_item_text_size" />
<ImageView
+ android:id="@+id/loginOutBtn"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_alignParentRight="true"
@@ -179,4 +212,35 @@
android:src="@drawable/ic_right" />
</RelativeLayout>
+ <RelativeLayout
+ android:id="@+id/versionRL"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/item_height"
+ 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="褰撳墠鐗堟湰"
+ android:textColor="@color/black"
+ android:textSize="@dimen/my_item_text_size" />
+
+
+ <TextView
+ android:id="@+id/versionText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:layout_marginRight="25dp"
+ android:text="v1.0"
+ android:textColor="@color/text_color"
+ android:textSize="15sp" />
+ </RelativeLayout>
+
+
</RelativeLayout>
\ No newline at end of file
--
Gitblit v1.8.0