Linjiajia
2023-08-27 1df231fd6aafa221aef3532d069c7e27d4331be7
app/src/main/res/layout/fragment_function.xml
@@ -18,73 +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"
            app:layout_constraintTop_toTopOf="parent"
            android:paddingHorizontal="@dimen/dp_16"
            app:layout_constraintEnd_toEndOf="parent"
            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
                    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.android.app_base.widget.ExtendTitleBar>
        </com.hjq.bar.TitleBar>
        <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="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"
@@ -93,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"
@@ -143,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"
@@ -151,8 +138,8 @@
                        app:layout_constraintTop_toBottomOf="@id/tv_core_module">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_family_root_net" />
                        <TextView
@@ -174,8 +161,8 @@
                        app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:background="@drawable/function_notes" />
                        <TextView
@@ -197,8 +184,8 @@
                        app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_asset" />
                        <TextView
@@ -220,8 +207,8 @@
                        app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_honor" />
                        <TextView
@@ -246,8 +233,8 @@
                        >
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_little_doctor"
                            />
                        <TextView
@@ -271,8 +258,8 @@
                        >
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_cleaning"
                            />
                        <TextView
@@ -295,8 +282,8 @@
                        app:layout_constraintTop_toTopOf="@id/layout_little_doctor">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_mail_list" />
                        <TextView
@@ -318,8 +305,8 @@
                        app:layout_constraintTop_toTopOf="@id/layout_little_doctor">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_pamper_pet" />
                        <TextView
@@ -343,8 +330,8 @@
                        app:layout_constraintTop_toBottomOf="@+id/layout_little_doctor">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_income_expense" />
                        <TextView
@@ -352,6 +339,30 @@
                            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>
@@ -372,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"
@@ -380,8 +391,8 @@
                        app:layout_constraintTop_toBottomOf="@id/tv_personal_module">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_growth" />
                        <TextView
@@ -403,8 +414,8 @@
                        app:layout_constraintTop_toTopOf="@id/layout_growing_up">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_marriage" />
                        <TextView
@@ -427,8 +438,8 @@
                        app:layout_constraintTop_toTopOf="@+id/layout_growing_up">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_property"/>
                        <TextView
@@ -450,8 +461,8 @@
                        app:layout_constraintTop_toTopOf="@+id/layout_growing_up">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_wish"/>
                        <TextView
@@ -475,8 +486,8 @@
                        app:layout_constraintTop_toBottomOf="@+id/layout_growing_up">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_tour" />
                        <TextView
@@ -499,8 +510,8 @@
                        app:layout_constraintTop_toTopOf="@+id/layout_tourism">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_health" />
                        <TextView
@@ -523,8 +534,8 @@
                        app:layout_constraintTop_toTopOf="@+id/layout_tourism">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_honor" />
                        <TextView
@@ -547,8 +558,8 @@
                        app:layout_constraintTop_toTopOf="@+id/layout_tourism">
                        <ImageView
                            android:layout_width="@dimen/dp_24"
                            android:layout_height="@dimen/dp_24"
                            android:layout_width="24dp"
                            android:layout_height="24dp"
                            android:background="@drawable/function_privacy" />
                        <TextView