<?xml version="1.0" encoding="utf-8"?>
|
<androidx.core.widget.NestedScrollView
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="211dp"
|
android:layout_height="match_parent"
|
android:layout_gravity="start"
|
android:background="?attr/drawerBackgroundColor"
|
android:paddingTop="25dp"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:paddingHorizontal="12dp"
|
>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginTop="33dp"
|
android:layout_marginBottom="20dp"
|
android:gravity="center"
|
>
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:id="@+id/dl_home_user_avatar"
|
android:layout_width="50dp"
|
android:layout_height="50dp"
|
android:scaleType="centerCrop"
|
app:roundPercent="1"
|
/>
|
<TextView
|
android:id="@+id/dl_home_user_name"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="张喵"
|
android:textSize="18sp"
|
android:textColor="@color/black"
|
android:layout_marginStart="16dp"
|
/>
|
</LinearLayout>
|
<!--CardView卡片布局 用于显示阴影和圆角效果的UI 继承自FrameLayout帧布局 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardBackgroundColor="@color/white"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="0dp"
|
>
|
<!--cardElevation设置Z轴高度,表现出立体的阴影效果,从而增强视觉层级和空间感知-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:paddingVertical="8dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="核心板块"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:layout_marginStart="14dp"
|
android:layout_marginBottom="8dp"
|
/>
|
<!--View 一条横线-->
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#FFF3F3F3"
|
/>
|
<!--paddingHorizontal水平方向填充,相当于整体左右移,有正负
|
marginVertical 边缘垂直,相当于整体上下移动
|
-->
|
<LinearLayout
|
android:id="@+id/dl_home_root_net"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="10dp"
|
android:background="?attr/icFunctionFamilyRootNet"
|
/>
|
<!--marginStart边缘距离左边的距离-->
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="家根网"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_family_memorabilia"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="?attr/icFunctionNotes"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="家大事记"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_family_assets"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="14dp"
|
android:background="?attr/icFunctionAsset"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="家庭资产"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_home_devices"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="13dp"
|
android:background="?attr/icFunctionHomeDevices"
|
/>
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="家庭设备"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_honor_collection"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="12dp"
|
android:background="?attr/icFunctionHonor"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="收藏、荣誉"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_little_doctor"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="?attr/icFunctionLittleDoctor"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="小医生"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_clean_storage"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="?attr/icFunctionCleaning"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="保洁、收纳"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_contacts"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="14dp"
|
android:background="?attr/icFunctionMailList"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="通讯录"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_pet"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="10dp"
|
android:background="?attr/icFunctionPamperPet"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="魅宠"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_income_and_expenses"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="?attr/icFunctionIncomeExpense"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="家庭收支台账"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardBackgroundColor="@color/white"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="0dp"
|
android:layout_marginTop="30dp"
|
android:layout_marginBottom="10dp"
|
>
|
<!--cardElevation设置Z轴高度,表现出立体的阴影效果,从而增强视觉层级和空间感知-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:paddingVertical="8dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="会议板块"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:layout_marginStart="14dp"
|
android:layout_marginBottom="8dp"
|
/>
|
<!--View 一条横线-->
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#FFF3F3F3"
|
/>
|
<!--paddingHorizontal水平方向填充,相当于整体左右移,有正负
|
marginVertical 边缘垂直,相当于整体上下移动
|
-->
|
<LinearLayout
|
android:id="@+id/dl_family_meeting"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="10dp"
|
android:background="@drawable/ic_function_meeting"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="会议申请"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_family_webcast"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="@drawable/ic_function_webcast"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="家庭直播"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/dl_back"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="@drawable/ic_fuction_back"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="直播回放"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardBackgroundColor="@color/white"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="0dp"
|
android:layout_marginTop="26dp"
|
android:layout_marginBottom="14dp"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:paddingVertical="8dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="个人板块"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:layout_marginBottom="8dp"
|
android:layout_marginStart="14dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#FFF3F3F3"
|
/>
|
<LinearLayout
|
android:id="@+id/dl_growing_up"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="16dp"
|
android:background="?attr/icFunctionGrowth"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="成长经历阅历"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_marriage"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="13dp"
|
android:background="?attr/icFunctionMarriage"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="婚姻"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_property"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="16dp"
|
android:background="?attr/icFunctionProperty"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="财产"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_hundred_wish"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="13dp"
|
android:background="?attr/icFunctionWish"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="百年心愿"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_tourism"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="13dp"
|
android:background="?attr/icFunctionTour"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="旅游"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_health_care"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="12dp"
|
android:background="?attr/icFunctionHealth" />
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="健康保健"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_certificate_of_honor"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="14dp"
|
android:background="?attr/icFunctionCertificate"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="荣誉、证书奖项"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/dl_privacy"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:paddingHorizontal="15dp"
|
android:layout_marginVertical="3dp"
|
android:gravity="center"
|
>
|
<ImageView
|
android:layout_width="13dp"
|
android:layout_height="15dp"
|
android:background="?attr/icFunctionPrivacy"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="隐私"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:layout_marginStart="15dp"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_vector_gray"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|