From ecaf8069072e71db4bff94671e72764b211d6af1 Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期四, 26 十月 2023 00:43:51 +0800 Subject: [PATCH] 功能完善 --- app/src/main/res/layout/item_family_member.xml | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/item_family_member.xml b/app/src/main/res/layout/item_family_member.xml index a625660..80ea031 100644 --- a/app/src/main/res/layout/item_family_member.xml +++ b/app/src/main/res/layout/item_family_member.xml @@ -1,9 +1,12 @@ <?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:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools"> <data> - + <variable + name="bean" + type="com.application.zhangshi_app_android.bean.HomeRootBean" /> </data> <androidx.cardview.widget.CardView @@ -17,7 +20,7 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginHorizontal="12dp" + android:layout_marginHorizontal="10dp" android:layout_marginVertical="5dp" android:orientation="horizontal" android:gravity="center" @@ -28,9 +31,12 @@ android:id="@+id/tv_generation" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="1" + android:text="@{bean.identity+``}" android:textSize="18sp" android:textColor="#FFEBA4AA" + android:gravity="center" + android:maxLines="1" + tools:text="100" /> <!-- 澶村儚 --> @@ -42,13 +48,14 @@ android:layout_marginEnd="10dp" android:scaleType="fitCenter" app:roundPercent="1" + app:imageUrl="@{bean.img}" /> <!-- 鍚嶅瓧 --> <TextView android:id="@+id/tv_name" android:layout_width="70dp" android:layout_height="wrap_content" - android:text="鏋椾匠鏋椾匠" + android:text="@{bean.nickName}" android:textSize="16sp" android:textStyle="bold" android:textColor="#FFF6739F" -- Gitblit v1.9.1