From efafbbf142c81c233c71de636a2d3ce9dc2124f0 Mon Sep 17 00:00:00 2001
From: Linjiajia <319408893@qq.com>
Date: 星期二, 12 九月 2023 19:20:05 +0800
Subject: [PATCH] 修复bug
---
app/src/main/res/layout/fragment_function.xml | 216 +++++++++++++++++++++++++++++------------------------
1 files changed, 117 insertions(+), 99 deletions(-)
diff --git a/app/src/main/res/layout/fragment_function.xml b/app/src/main/res/layout/fragment_function.xml
index 1750aa7..1894dab 100644
--- a/app/src/main/res/layout/fragment_function.xml
+++ b/app/src/main/res/layout/fragment_function.xml
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<layout xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:android="http://schemas.android.com/apk/res/android">
+
+
+<layout
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ >
<data>
<variable
@@ -14,71 +18,60 @@
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="@dimen/dp_55"
- android:background="@color/color_title_bar_background"
- android:paddingHorizontal="@dimen/dp_16"
- app:layout_constraintEnd_toEndOf="parent"
+ app:titleGravity="left"
+ app:title="鍔熻兘"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="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>
-
+ >
<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
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_search" />
+ android:id="@+id/iv_operate_select"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/ic_operate_select_white" />
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:layout_marginStart="@dimen/dp_16"
+ android:id="@+id/iv_operate"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginStart="16dp"
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/img_sakura"
+ android:layout_height="0dp"
+ app:layout_constraintDimensionRatio="16:9"
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>
+ </FrameLayout>
<LinearLayout
android:layout_width="match_parent"
@@ -87,7 +80,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"
@@ -137,7 +130,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"
@@ -145,9 +138,9 @@
app:layout_constraintTop_toBottomOf="@id/tv_core_module">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_family_root_net" />
<TextView
android:layout_width="wrap_content"
@@ -168,9 +161,9 @@
app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/function_notes" />
<TextView
android:layout_width="wrap_content"
@@ -191,9 +184,9 @@
app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_asset" />
<TextView
android:layout_width="wrap_content"
@@ -214,9 +207,9 @@
app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_honor" />
<TextView
android:layout_width="wrap_content"
@@ -240,9 +233,9 @@
>
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_little_doctor"
/>
<TextView
android:layout_width="wrap_content"
@@ -265,9 +258,9 @@
>
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_cleaning"
/>
<TextView
android:layout_width="wrap_content"
@@ -289,9 +282,9 @@
app:layout_constraintTop_toTopOf="@id/layout_little_doctor">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_mail_list" />
<TextView
android:layout_width="wrap_content"
@@ -312,9 +305,9 @@
app:layout_constraintTop_toTopOf="@id/layout_little_doctor">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_pamper_pet" />
<TextView
android:layout_width="wrap_content"
@@ -337,15 +330,39 @@
app:layout_constraintTop_toBottomOf="@+id/layout_little_doctor">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_income_expense" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_4"
android:text="鏀舵敮鍙拌处"
+ android:textColor="@color/black"
+ android:textSize="@dimen/sp_14" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/layout_home_devices"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:orientation="vertical"
+ app:layout_constraintEnd_toEndOf="@id/layout_family_memorabilia"
+ app:layout_constraintStart_toStartOf="@id/layout_family_memorabilia"
+ app:layout_constraintTop_toTopOf="@+id/layout_income_and_expenses">
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/function_home_devices" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/dp_4"
+ android:text="瀹跺涵璁惧"
android:textColor="@color/black"
android:textSize="@dimen/sp_14" />
</LinearLayout>
@@ -366,7 +383,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"
@@ -374,9 +391,9 @@
app:layout_constraintTop_toBottomOf="@id/tv_personal_module">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_growth" />
<TextView
android:layout_width="wrap_content"
@@ -397,9 +414,9 @@
app:layout_constraintTop_toTopOf="@id/layout_growing_up">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_marriage" />
<TextView
android:layout_width="wrap_content"
@@ -421,9 +438,9 @@
app:layout_constraintTop_toTopOf="@+id/layout_growing_up">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_property"/>
<TextView
android:layout_width="wrap_content"
@@ -444,9 +461,9 @@
app:layout_constraintTop_toTopOf="@+id/layout_growing_up">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_wish"/>
<TextView
android:layout_width="wrap_content"
@@ -469,9 +486,9 @@
app:layout_constraintTop_toBottomOf="@+id/layout_growing_up">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_tour" />
<TextView
android:layout_width="wrap_content"
@@ -493,9 +510,9 @@
app:layout_constraintTop_toTopOf="@+id/layout_tourism">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_health" />
<TextView
android:layout_width="wrap_content"
@@ -517,9 +534,9 @@
app:layout_constraintTop_toTopOf="@+id/layout_tourism">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_honor" />
<TextView
android:layout_width="wrap_content"
@@ -541,9 +558,9 @@
app:layout_constraintTop_toTopOf="@+id/layout_tourism">
<ImageView
- android:layout_width="@dimen/dp_24"
- android:layout_height="@dimen/dp_24"
- android:background="@drawable/ic_delete" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:background="@drawable/function_privacy" />
<TextView
android:layout_width="wrap_content"
@@ -561,5 +578,6 @@
+
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
\ No newline at end of file
--
Gitblit v1.9.1