| | |
| | | <?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 |
| | | android:id="@+id/cv_container" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | app:cardCornerRadius="10dp" |
| | | app:cardElevation="5dp" |
| | | app:cardBackgroundColor="@color/white" |
| | | android:layout_margin="1dp"> |
| | | |
| | | <androidx.constraintlayout.utils.widget.ImageFilterView |
| | | android:id="@+id/iv_myself" |
| | | android:layout_width="18dp" |
| | | android:layout_height="18dp" |
| | | android:layout_gravity="center_vertical" |
| | | android:layout_marginHorizontal="2dp" |
| | | android:background="@drawable/ic_myself" |
| | | app:roundPercent="1" |
| | | android:elevation="10dp" |
| | | android:visibility="gone" |
| | | tools:visibility="visible" |
| | | /> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginHorizontal="12dp" |
| | | android:layout_marginEnd="20dp" |
| | | android:layout_marginStart="20dp" |
| | | android:layout_marginVertical="5dp" |
| | | android:orientation="horizontal" |
| | | android:gravity="center" |
| | |
| | | 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="2" |
| | | |
| | | /> |
| | | |
| | | <!-- 头像 --> |
| | |
| | | android:id="@+id/iv_avatar" |
| | | android:layout_width="30dp" |
| | | android:layout_height="30dp" |
| | | android:layout_marginStart="8dp" |
| | | android:layout_marginStart="5dp" |
| | | android:layout_marginEnd="10dp" |
| | | android:background="@drawable/img_sakura" |
| | | 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:textColor="#FF5F6980" |
| | | android:textStyle="bold" |
| | | android:textColor="#FFF6739F" |
| | | android:ellipsize="marquee" |
| | | android:singleLine="true" |
| | | android:focusable="true" |