91 lines
3.6 KiB
XML
91 lines
3.6 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="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="@dimen/dp_6"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/ll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_71"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/iv_follow_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@mipmap/default_avatar"
|
|
app:riv_corner_radius="@dimen/dp_11" />
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/bg_r11_with"
|
|
android:scaleType="fitCenter"
|
|
app:riv_corner_radius="@dimen/dp_11" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_play"
|
|
android:layout_width="@dimen/dp_17"
|
|
android:layout_height="@dimen/dp_11"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:src="@drawable/phonetic"
|
|
app:layout_constraintTop_toTopOf="@id/ll"
|
|
app:layout_constraintStart_toStartOf="@id/ll" />
|
|
<LinearLayout
|
|
android:layout_width="@dimen/dp_92"
|
|
android:layout_height="@dimen/dp_21"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="@+id/ll"
|
|
android:background="@drawable/group"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:gravity="center"
|
|
>
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dp_20"
|
|
android:id="@+id/rv_tags"
|
|
android:layout_gravity="center"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/iv_play"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
tools:listitem="@layout/index_item_image"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_num"
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_18"
|
|
android:text="200人"
|
|
android:textColor="@color/color_FFFFF0F0"
|
|
android:textSize="@dimen/sp_12"
|
|
android:gravity="center"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/rv_tags"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_room_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_18"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/ll"
|
|
android:gravity="center"
|
|
android:textColor="@color/color_FF333333"
|
|
android:textSize="@dimen/sp_12"
|
|
tools:text="标题" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |