<?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.PetActivityViewModel" />
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
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: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"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<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="40dp"
|
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"
|
>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="犬名:小黄"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="犬种:金毛"
|
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="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="性别:雌性"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="犬只颜色:金黄色"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
/>
|
</LinearLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="出生日期:2010-03-01"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
android:layout_marginTop="10dp"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="犬证号码:1234567891"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
android:layout_marginTop="10dp"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="防伪码:1234567891"
|
android:textColor="#FF000000"
|
android:textSize="14sp"
|
android:layout_marginTop="10dp"
|
/>
|
<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="小狗粮"
|
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="小狗粮"
|
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="小狗粮小狗粮"
|
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="小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮小狗粮"
|
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="粤语、客家话"
|
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="广东省广州市"
|
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"
|
/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/recyclerView"
|
android:layout_marginTop="10dp"
|
/>
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout>
|