From 82e57df230ecb744af6c8865f80870ba03c86d89 Mon Sep 17 00:00:00 2001
From: Linjiajia <319408893@qq.com>
Date: 星期二, 25 七月 2023 22:18:27 +0800
Subject: [PATCH] 基本功能完成

---
 app/src/main/res/layout/fragment_function.xml |  108 +++++++++++++++++++++++++++++------------------------
 1 files changed, 59 insertions(+), 49 deletions(-)

diff --git a/app/src/main/res/layout/fragment_function.xml b/app/src/main/res/layout/fragment_function.xml
index 58f109f..dc8f422 100644
--- a/app/src/main/res/layout/fragment_function.xml
+++ b/app/src/main/res/layout/fragment_function.xml
@@ -2,9 +2,9 @@
 
 
 <layout
-xmlns:app="http://schemas.android.com/apk/res-auto"
-xmlns:android="http://schemas.android.com/apk/res/android"
->
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    >
 
     <data>
         <variable
@@ -18,47 +18,20 @@
         android:background="@color/color_normal_background"
         android:orientation="vertical"
         >
-
-
-        <com.hjq.bar.TitleBar
+        <com.android.app_base.widget.ExtendTitleBar
             android:id="@+id/titleBar"
             android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:background="@color/color_title_bar_background"
-            app:layout_constraintTop_toTopOf="parent"
-            android:paddingHorizontal="@dimen/dp_16"
-            app:layout_constraintEnd_toEndOf="parent"
+            android:layout_height="@dimen/dp_55"
+            app:titleGravity="left"
+            app:title="鍔熻兘"
             app:layout_constraintStart_toStartOf="parent"
-            app:leftIcon="@null"
-            app:rightIcon="@null">
-
-            <LinearLayout
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_gravity="start|center_vertical"
-                android:orientation="horizontal">
-
-                <ImageView
-                    android:id="@+id/menu"
-                    android:layout_width="@dimen/dp_24"
-                    android:layout_height="@dimen/dp_24"
-                    android:layout_gravity="center"
-                    android:background="@drawable/ic_menu" />
-
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="@dimen/dp_32"
-                    android:text="@string/title_function"
-                    android:textColor="@color/white"
-                    android:textSize="@dimen/sp_20" />
-
-            </LinearLayout>
-
+            app:layout_constraintTop_toTopOf="parent"
+            >
             <LinearLayout
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="end|center_vertical"
+                android:layout_marginHorizontal="16dp"
                 android:orientation="horizontal">
 
                 <ImageView
@@ -67,25 +40,62 @@
                     android:background="@drawable/ic_search" />
 
                 <ImageView
+                    android:id="@+id/iv_operate"
                     android:layout_width="@dimen/dp_24"
                     android:layout_height="@dimen/dp_24"
                     android:layout_marginStart="@dimen/dp_16"
                     android:background="@drawable/ic_operate" />
 
             </LinearLayout>
-
-        </com.hjq.bar.TitleBar>
+        </com.android.app_base.widget.ExtendTitleBar>
 
 
-        <ImageView
-            android:id="@+id/iv_group_photo"
+        <FrameLayout
+            android:id="@+id/layout_banner"
             android:layout_width="match_parent"
-            android:layout_height="@dimen/dp_200"
-            android:background="@drawable/margin_pic"
+            android:layout_height="200dp"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintTop_toBottomOf="@id/titleBar"
-            />
+            >
+            <FrameLayout
+                android:id="@+id/layout_frame"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:background="@color/color_card_pink"
+                >
+                <ImageView
+                    android:id="@+id/iv_banner"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    />
+            </FrameLayout>
+            <RelativeLayout
+                android:id="@+id/layout_data_null"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:orientation="vertical"
+                >
+                <ImageView
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:src="@drawable/img_data_null"
+                    android:scaleType="center"
+                    />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="绌虹┖濡備篃~"
+                    android:textColor="#73000000"
+                    android:layout_gravity="center"
+                    android:layout_centerHorizontal="true"
+                    android:layout_alignParentBottom="true"
+                    android:layout_marginBottom="10dp"
+                    />
+            </RelativeLayout>
+
+        </FrameLayout>
 
         <LinearLayout
             android:layout_width="match_parent"
@@ -94,7 +104,7 @@
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintTop_toBottomOf="@id/iv_group_photo"
+            app:layout_constraintTop_toBottomOf="@id/layout_banner"
             >
             <androidx.core.widget.NestedScrollView
                 android:layout_width="match_parent"
@@ -144,7 +154,7 @@
                         android:id="@+id/layout_home_root_net"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
-                        android:layout_marginTop="@dimen/dp_15"
+                        android:layout_marginTop="15dp"
                         android:gravity="center"
                         android:orientation="vertical"
                         app:layout_constraintEnd_toStartOf="@+id/gl_v_0.25"
@@ -152,8 +162,8 @@
                         app:layout_constraintTop_toBottomOf="@id/tv_core_module">
 
                         <ImageView
-                            android:layout_width="wrap_content"
-                            android:layout_height="wrap_content"
+                            android:layout_width="@dimen/dp_24"
+                            android:layout_height="@dimen/dp_24"
                             android:background="@drawable/function_family_root_net" />
 
                         <TextView
@@ -397,7 +407,7 @@
                         android:id="@+id/layout_growing_up"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
-                        android:layout_marginTop="@dimen/dp_15"
+                        android:layout_marginTop="15dp"
                         android:gravity="center"
                         android:orientation="vertical"
                         app:layout_constraintEnd_toStartOf="@+id/gl_v_0.25"

--
Gitblit v1.9.1