From 63608b5dca9eebb6fa2cb1a8652b395f1d910c3e Mon Sep 17 00:00:00 2001
From: 张钢 <floatgang@163.com>
Date: 星期一, 02 九月 2024 13:52:17 +0800
Subject: [PATCH] 对新接口进行了适配
---
app/src/main/res/layout/dialog_pet_owner_info.xml | 333 +++++++++++++++++++-----------------------------------
1 files changed, 119 insertions(+), 214 deletions(-)
diff --git a/app/src/main/res/layout/dialog_pet_owner_info.xml b/app/src/main/res/layout/dialog_pet_owner_info.xml
index 34e69f7..8260c3c 100644
--- a/app/src/main/res/layout/dialog_pet_owner_info.xml
+++ b/app/src/main/res/layout/dialog_pet_owner_info.xml
@@ -1,239 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.cardview.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
+<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"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardBackgroundColor="#FFFFFCFC"
- app:cardCornerRadius="5dp"
- android:layout_marginHorizontal="30dp"
- >
+ xmlns:tools="http://schemas.android.com/tools">
- <androidx.constraintlayout.widget.ConstraintLayout
+ <data>
+ <variable
+ name="owner"
+ type="com.application.zhangshi_app_android.bean.PetBean" />
+ </data>
+
+ <androidx.cardview.widget.CardView
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ app:cardBackgroundColor="#FFFFFCFC"
+ app:cardCornerRadius="5dp"
+ android:layout_marginHorizontal="30dp">
- <ImageView
- android:id="@+id/iv_dialog_close"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="15dp"
- android:layout_marginEnd="15dp"
- android:background="@drawable/ic_dialog_close"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <LinearLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginHorizontal="30dp"
- android:layout_marginVertical="15dp"
- android:orientation="vertical"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="parent"
>
-
- <TextView
+ <ImageView
+ android:id="@+id/iv_dialog_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="鍏荤姮浜轰俊鎭�"
- android:textColor="#66000000"
- android:textSize="14sp"
- app:layout_constraintStart_toStartOf="parent"
+ android:layout_marginTop="15dp"
+ android:layout_marginEnd="15dp"
+ android:background="@drawable/ic_dialog_close"
+ app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="10dp">
+ android:layout_margin="30dp"
+ android:orientation="vertical"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="鍏荤姮浜哄鍚嶏細"
- android:textColor="@color/black"
- android:textSize="14sp" />
+ android:text="鍏荤姮浜轰俊鎭�"
+ android:textColor="#66000000"
+ android:textSize="14sp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:layout_width="0dp"
+ <LinearLayout
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="寮犱笁"
- android:textColor="@color/black"
- android:textSize="14sp" />
+ android:layout_marginTop="10dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="鍏荤姮浜哄鍚嶏細"
+ android:textColor="@color/black"
+ android:textSize="14sp" />
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@{owner.masterName}"
+ android:textColor="@color/black"
+ 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="@color/black"
+ android:textSize="14sp" />
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@{owner.phone}"
+ android:textColor="@color/black"
+ 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="@color/black"
+ android:textSize="14sp" />
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@{owner.masterIdNum}"
+ android:textColor="@color/black"
+ 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="@color/black"
+ android:textSize="14sp" />
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@{owner.masterAddress}"
+ android:textColor="@color/black"
+ 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="@color/black"
- android:textSize="14sp" />
+ </androidx.constraintlayout.widget.ConstraintLayout>
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="12345678901"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="12345678901"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="韬唤璇�"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="12345678901"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="2"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="骞夸笢鐪佸箍宸炲競鐣鍖哄皬璋峰洿琛楅亾101鍙�"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="甯镐綇"
- android:textColor="@color/black"
- 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="@color/black"
- android:textSize="14sp" />
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Zhang@123.com"
- android:textColor="@color/black"
- android:textSize="14sp" />
- </LinearLayout>
- </LinearLayout>
-
-
- </androidx.constraintlayout.widget.ConstraintLayout>
-
-</androidx.cardview.widget.CardView>
\ No newline at end of file
+ </androidx.cardview.widget.CardView>
+</layout>
\ No newline at end of file
--
Gitblit v1.9.1