123 lines
4.5 KiB
XML
123 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="167dp"
|
|
android:layout_height="167dp"
|
|
android:layout_marginTop="16dp">
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/avatar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/m_chu_xia"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:riv_corner_radius="10dp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/cover"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/bg_home_hot_cover"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:riv_corner_radius="10dp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@mipmap/ic_home_hot_status_online" />
|
|
|
|
<ImageView
|
|
android:id="@+id/btn_chat"
|
|
android:layout_width="60dp"
|
|
android:layout_height="27dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="13dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:srcCompat="@mipmap/ic_home_hot_chat" />
|
|
|
|
<TextView
|
|
android:id="@+id/user_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="20dp"
|
|
android:layout_marginStart="11dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:ellipsize="end"
|
|
android:maxEms="5"
|
|
android:singleLine="true"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="14sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/btn_chat"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
tools:text="花花花花花花花花" />
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout3"
|
|
android:layout_width="48dp"
|
|
android:layout_height="15dp"
|
|
android:background="@mipmap/bg_home_hot_live"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintBottom_toTopOf="@+id/user_name"
|
|
app:layout_constraintStart_toStartOf="@+id/user_name">
|
|
|
|
<ImageView
|
|
android:id="@+id/ic_level"
|
|
android:layout_width="10dp"
|
|
android:layout_height="12dp"
|
|
android:layout_marginStart="5dp"
|
|
app:srcCompat="@mipmap/ic_home_hot_woman" />
|
|
|
|
<TextView
|
|
android:id="@+id/level"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
android:text="LV.21"
|
|
android:textColor="#FFF"
|
|
android:textSize="10sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="35dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginStart="4dp"
|
|
android:background="@drawable/bg_home_hot_sex"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible"
|
|
app:layout_constraintBottom_toBottomOf="@+id/linearLayout3"
|
|
app:layout_constraintStart_toEndOf="@+id/linearLayout3"
|
|
app:layout_constraintTop_toTopOf="@+id/linearLayout3">
|
|
|
|
<ImageView
|
|
android:id="@+id/sex"
|
|
android:layout_width="10dp"
|
|
android:layout_height="12dp"
|
|
android:layout_marginStart="5dp"
|
|
app:srcCompat="@mipmap/ic_home_hot_woman" />
|
|
|
|
<TextView
|
|
android:id="@+id/age"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:text="21"
|
|
android:textColor="#FFF"
|
|
android:textSize="10sp" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |