|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- CardView 内部的内容 --> | 
|---|
|  |  |  | <androidx.cardview.widget.CardView | 
|---|
|  |  |  | android:id="@+id/memberCardCardView" | 
|---|
|  |  |  | android:layout_width="match_parent" | 
|---|
|  |  |  | android:layout_height="wrap_content" | 
|---|
|  |  |  | android:layout_marginLeft="15dp" | 
|---|
|  |  |  | android:layout_marginTop="10dp" | 
|---|
|  |  |  | android:layout_marginRight="15dp" | 
|---|
|  |  |  | android:elevation="2dp" | 
|---|
|  |  |  | android:elevation="0dp" | 
|---|
|  |  |  | android:clipChildren="false" | 
|---|
|  |  |  | android:clipToOutline="true" | 
|---|
|  |  |  | app:cardCornerRadius="10dp">  <!-- 设置CardView的elevation --> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | android:layout_width="match_parent" | 
|---|
|  |  |  | android:layout_height="wrap_content" | 
|---|
|  |  |  | android:layout_marginTop="10dp" | 
|---|
|  |  |  | tools:ignore="MissingConstraints"> | 
|---|
|  |  |  | tools:ignore="MissingConstraints" | 
|---|
|  |  |  | android:background="@android:color/transparent" | 
|---|
|  |  |  | > | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <ImageView | 
|---|
|  |  |  | <!--                <ImageView--> | 
|---|
|  |  |  | <!--                    android:id="@+id/memberAvatarView"--> | 
|---|
|  |  |  | <!--                    android:layout_width="25dp"--> | 
|---|
|  |  |  | <!--                    android:layout_height="27dp"--> | 
|---|
|  |  |  | <!--                    android:layout_marginLeft="10dp"--> | 
|---|
|  |  |  | <!--                    android:scaleType="centerCrop"--> | 
|---|
|  |  |  | <!--                    app:layout_constraintStart_toStartOf="parent"--> | 
|---|
|  |  |  | <!--                    app:layout_constraintTop_toTopOf="parent"--> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--                    />--> | 
|---|
|  |  |  | <com.google.android.material.imageview.ShapeableImageView | 
|---|
|  |  |  | android:id="@+id/memberAvatarView" | 
|---|
|  |  |  | android:layout_width="40dp" | 
|---|
|  |  |  | android:layout_height="40dp" | 
|---|
|  |  |  | android:layout_marginLeft="10dp" | 
|---|
|  |  |  | android:layout_marginRight="10dp" | 
|---|
|  |  |  | android:scaleType="centerCrop" | 
|---|
|  |  |  | app:layout_constraintStart_toStartOf="parent" | 
|---|
|  |  |  | app:layout_constraintTop_toTopOf="parent" /> | 
|---|
|  |  |  | app:layout_constraintTop_toTopOf="parent" | 
|---|
|  |  |  | app:shapeAppearanceOverlay="@style/CircleImageView" /> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <TextView | 
|---|
|  |  |  | android:id="@+id/phoneNumberText" | 
|---|
|  |  |  | 
|---|
|  |  |  | android:layout_height="40dp" | 
|---|
|  |  |  | android:gravity="center" | 
|---|
|  |  |  | android:text="@{viewModel.phoneNumber}" | 
|---|
|  |  |  | android:textColor="#F2F2F2" | 
|---|
|  |  |  | app:layout_constraintStart_toEndOf="@id/memberAvatarView" | 
|---|
|  |  |  | app:layout_constraintTop_toTopOf="parent" /> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | android:text="@{viewModel.memberStatus}" | 
|---|
|  |  |  | android:layout_marginLeft="8dp" | 
|---|
|  |  |  | android:padding="2dp" | 
|---|
|  |  |  | android:textColor="#AAAAAA" | 
|---|
|  |  |  | app:layout_constraintStart_toStartOf="parent" | 
|---|
|  |  |  | app:layout_constraintTop_toBottomOf="@id/memberAvatarView" /> | 
|---|
|  |  |  |  | 
|---|