<?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.function.PetDetailActivityViewModel" />
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:background="?attr/detailPageBackgroundColor"
|
>
|
|
<com.android.app_base.widget.ExtendTitleBar
|
android:id="@+id/extendTitleBar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:elevation="10dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:title="魅宠(仅供查看)"
|
app:titleGravity="left"
|
>
|
<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>
|
|
<LinearLayout
|
android:id="@+id/layout_data_null"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:gravity="center"
|
android:visibility="gone"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/extendTitleBar">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/img_data_null"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="18dp"
|
android:text="暂时还没有数据哦~\n点击”+”立即创建"
|
android:textSize="14sp"
|
android:textColor="#73000000"
|
/>
|
</LinearLayout>
|
|
<androidx.core.widget.NestedScrollView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/extendTitleBar"
|
>
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="20dp"
|
android:layout_marginVertical="26dp"
|
app:cardBackgroundColor="#99FFE2EF"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="0dp"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginVertical="20dp"
|
android:orientation="vertical"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="小黄的基本信息"
|
android:textColor="#66000000"
|
android:textSize="14sp"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="犬名:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.name}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:layout_marginStart="20dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="犬种:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.type}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="性别:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.sex}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:layout_marginStart="20dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="犬只颜色:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.color}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="出生日期:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.birth}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="犬证号码:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.idNum}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="防伪码:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.securityCode}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="饮食习惯(喜):"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.eatHabit}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="饮食习惯(恶):"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.disEatHabit}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="生活习惯(爱好):"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.lifeHabit}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="生活习惯(嗜好):"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.disLifeHabit}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="听懂方言:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.dialect}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="犬居住地址:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{viewModel.beanLiveData.address}"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="魅宠全身照:"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
android:layout_marginTop="10dp"
|
/>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/recyclerView"
|
/>
|
</RelativeLayout>
|
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout>
|