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/item_pet.xml | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/app/src/main/res/layout/item_pet.xml b/app/src/main/res/layout/item_pet.xml
index f3848ab..2760f4d 100644
--- a/app/src/main/res/layout/item_pet.xml
+++ b/app/src/main/res/layout/item_pet.xml
@@ -20,7 +20,7 @@
android:layout_margin="@dimen/dp_2"
app:cardCornerRadius="@dimen/dp_10"
tools:layout_height="wrap_content"
- app:cardBackgroundColor="@color/color_card_pink"
+ app:cardBackgroundColor="?attr/cardBackgroundColorFirst"
>
<LinearLayout
android:layout_width="match_parent"
@@ -32,7 +32,17 @@
android:layout_width="match_parent"
android:layout_height="40dp"
android:gravity="center_vertical">
-
+ <ImageView
+ android:id="@+id/iv_flower"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="3dp"
+ android:layout_centerVertical="true"
+ android:background="?attr/icIsOwnFamilyDataFlower"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textView1"
android:layout_width="0dp"
--
Gitblit v1.9.1