<?xml version="1.0" encoding="utf-8"?>
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools">
|
|
<data>
|
<variable
|
name="viewModel"
|
type="com.application.zhangshi_app_android.ui.personal_center.PersonalCenterFragmentViewModel" />
|
</data>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:background="@color/color_normal_background"
|
>
|
<com.android.app_base.widget.ExtendTitleBar
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:title="个人中心"
|
app:titleGravity="left"
|
android:elevation="5dp"
|
>
|
<FrameLayout
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_marginHorizontal="16dp"
|
android:layout_gravity="center_vertical|end"
|
>
|
<ImageView
|
android:id="@+id/iv_operate"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:background="@drawable/ic_operate"
|
/>
|
</FrameLayout>
|
</com.android.app_base.widget.ExtendTitleBar>
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingBottom="20dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="个人信息"
|
android:textSize="20sp"
|
android:textColor="@color/black"
|
android:layout_marginStart="20dp"
|
android:layout_marginTop="16dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="2dp"
|
android:background="#33000000"
|
android:layout_marginTop="24dp"
|
/>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:id="@+id/iv_head"
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_marginVertical="25dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintDimensionRatio="1"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintWidth_percent="0.3"
|
app:roundPercent="1"
|
app:imageUrl="@{viewModel.infoLiveData.img}"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_camera"
|
app:layout_constraintStart_toStartOf="@id/iv_head"
|
app:layout_constraintEnd_toEndOf="@id/iv_head"
|
app:layout_constraintBottom_toBottomOf="@id/iv_head"
|
android:layout_marginBottom="-15dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginHorizontal="15dp"
|
/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="15dp"
|
android:orientation="vertical"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingVertical="12dp"
|
android:paddingHorizontal="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="用户名称"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="@{viewModel.infoLiveData.nickName}"
|
android:gravity="end"
|
tools:text="张三"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingVertical="12dp"
|
android:paddingHorizontal="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="手机号码"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="@{viewModel.infoLiveData.phoneNumber}"
|
android:gravity="end"
|
tools:text="13234567890"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingVertical="12dp"
|
android:paddingHorizontal="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="用户邮箱"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="@{viewModel.infoLiveData.email}"
|
android:gravity="end"
|
tools:text="zhang@126.com"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingVertical="12dp"
|
android:paddingHorizontal="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="所属家庭"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="@{viewModel.infoLiveData.familyName}"
|
android:gravity="end"
|
tools:text="张三家庭"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingVertical="12dp"
|
android:paddingHorizontal="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="所属角色"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="@{viewModel.infoLiveData.roleName}"
|
android:gravity="end"
|
tools:text="家庭管理员"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingVertical="12dp"
|
android:paddingHorizontal="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="创建日期"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textSize="18sp"
|
android:textColor="#FF212121"
|
android:text="@{viewModel.infoLiveData.createTime}"
|
android:gravity="end"
|
tools:text="2023-04-01"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#33000000"
|
/>
|
</LinearLayout>
|
<TextView
|
android:id="@+id/tv_login_out"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginTop="20dp"
|
android:background="@drawable/shape_ff093878_10_solid"
|
android:gravity="center"
|
android:paddingHorizontal="70dp"
|
android:paddingVertical="5dp"
|
android:text="退出登录"
|
android:textColor="@color/white"
|
android:textSize="18dp" />
|
</LinearLayout>
|
</ScrollView>
|
|
</LinearLayout>
|
</layout>
|