<?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"
|
>
|
|
<data>
|
<variable
|
name="viewModel"
|
type="com.application.zhangshi_app_android.ui.function.FunctionFragmentViewModel" />
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="?attr/pageBackgroundColor"
|
android:orientation="vertical"
|
>
|
<com.android.app_base.widget.ExtendTitleBar
|
android:id="@+id/titleBar"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_55"
|
app:titleGravity="left"
|
app:title="功能"
|
app:layout_constraintStart_toStartOf="parent"
|
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:id="@+id/iv_operate_select"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="@drawable/ic_operate_select_white" />
|
|
<ImageView
|
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>
|
|
<FrameLayout
|
android:id="@+id/layout_banner"
|
android:layout_width="match_parent"
|
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="?attr/pageBackgroundColor"
|
>
|
<ImageView
|
android:id="@+id/iv_banner"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
/>
|
</FrameLayout>
|
</FrameLayout>
|
|
<FrameLayout
|
android:id="@+id/container"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/layout_banner"
|
>
|
<androidx.core.widget.NestedScrollView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingBottom="@dimen/dp_10"
|
>
|
<androidx.constraintlayout.widget.Guideline
|
android:id="@+id/gl_v_0.5"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintGuide_percent="0.5"
|
/>
|
<androidx.constraintlayout.widget.Guideline
|
android:id="@+id/gl_v_0.75"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintGuide_percent="0.75"
|
/>
|
<androidx.constraintlayout.widget.Guideline
|
android:id="@+id/gl_v_0.25"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintGuide_percent="0.25"
|
/>
|
|
<TextView
|
android:id="@+id/tv_core_module"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="20dp"
|
android:layout_marginTop="20dp"
|
android:text="核心模块"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_18"
|
android:textStyle="bold"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
<LinearLayout
|
android:id="@+id/layout_home_root_net"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.25"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/tv_core_module">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionFamilyRootNet"
|
/>
|
|
<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_family_memorabilia"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.5"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.25"
|
app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="?attr/icFunctionNotes" />
|
|
<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_family_assets"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.75"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.5"
|
app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionAsset" />
|
|
<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_honor_collection"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.75"
|
app:layout_constraintTop_toTopOf="@id/layout_home_root_net">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionHonor" />
|
|
<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_little_doctor"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintStart_toStartOf="@id/layout_home_root_net"
|
app:layout_constraintEnd_toEndOf="@id/layout_home_root_net"
|
app:layout_constraintTop_toBottomOf="@id/layout_home_root_net"
|
android:layout_marginTop="@dimen/dp_20"
|
android:gravity="center"
|
>
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionLittleDoctor"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_4"
|
android:textSize="@dimen/sp_14"
|
android:text="小医生"
|
android:textColor="@color/black"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/layout_clean_storage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintStart_toStartOf="@id/layout_family_memorabilia"
|
app:layout_constraintEnd_toEndOf="@id/layout_family_memorabilia"
|
app:layout_constraintTop_toTopOf="@id/layout_little_doctor"
|
android:gravity="center"
|
>
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionCleaning"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_4"
|
android:textSize="@dimen/sp_14"
|
android:text="保洁收纳"
|
android:textColor="@color/black"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/layout_contacts"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toEndOf="@+id/layout_family_assets"
|
app:layout_constraintStart_toStartOf="@+id/layout_family_assets"
|
app:layout_constraintTop_toTopOf="@id/layout_little_doctor">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionMailList"
|
/>
|
|
<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_pet"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toEndOf="@+id/layout_honor_collection"
|
app:layout_constraintStart_toStartOf="@+id/layout_honor_collection"
|
app:layout_constraintTop_toTopOf="@id/layout_little_doctor">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionPamperPet"
|
/>
|
|
<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_income_and_expenses"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:layout_marginTop="@dimen/dp_20"
|
app:layout_constraintEnd_toEndOf="@+id/layout_little_doctor"
|
app:layout_constraintStart_toStartOf="@+id/layout_little_doctor"
|
app:layout_constraintTop_toBottomOf="@+id/layout_little_doctor">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionIncomeExpense"
|
/>
|
|
<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="?attr/icFunctionHomeDevices"
|
/>
|
|
<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>
|
|
<TextView
|
android:id="@+id/tv_personal_module"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_20"
|
android:text="个人模块"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_18"
|
android:textStyle="bold"
|
app:layout_constraintStart_toStartOf="@+id/tv_core_module"
|
app:layout_constraintTop_toBottomOf="@+id/layout_income_and_expenses" />
|
|
<LinearLayout
|
android:id="@+id/layout_growing_up"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.25"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/tv_personal_module">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionGrowth"
|
/>
|
|
<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_marriage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.5"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.25"
|
app:layout_constraintTop_toTopOf="@id/layout_growing_up">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionMarriage"
|
/>
|
|
<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_property"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.75"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.5"
|
app:layout_constraintTop_toTopOf="@+id/layout_growing_up">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionProperty"
|
/>
|
|
<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_hundred_wish"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.75"
|
app:layout_constraintTop_toTopOf="@+id/layout_growing_up">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionWish"
|
/>
|
|
<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_tourism"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_20"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.25"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/layout_growing_up">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionTour"
|
/>
|
|
<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_health_care"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.5"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.25"
|
app:layout_constraintTop_toTopOf="@+id/layout_tourism">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionHealth"
|
/>
|
|
<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_certificate_of_honor"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toStartOf="@+id/gl_v_0.75"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.5"
|
app:layout_constraintTop_toTopOf="@+id/layout_tourism">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionCertificate"
|
/>
|
|
<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_privacy"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="@+id/gl_v_0.75"
|
app:layout_constraintTop_toTopOf="@+id/layout_tourism">
|
|
<ImageView
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:background="?attr/icFunctionPrivacy"
|
/>
|
|
<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>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.core.widget.NestedScrollView>
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
android:id="@+id/fab_add"
|
android:layout_width="56dp"
|
android:layout_height="56dp"
|
android:layout_gravity="end|bottom"
|
android:layout_marginEnd="25dp"
|
android:layout_marginBottom="44dp"
|
android:src="@drawable/ic_add"
|
app:fabCustomSize="56dp"
|
/>
|
|
</FrameLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|