GleeStream/app/src/main/res/layout/item_hot_square_vt.xml
2025-04-16 20:23:24 +08:00

50 lines
1.8 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"
android:id="@+id/root_hot_square"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_15">
<androidx.cardview.widget.CardView
android:id="@+id/cardview_hot_square"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintDimensionRatio="107:154"
app:cardCornerRadius="@dimen/dp_10"
app:layout_constraintTop_toTopOf="parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_hot_square_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<ImageButton
android:layout_width="@dimen/dp_22"
android:layout_height="@dimen/dp_16"
android:background="@drawable/cornor_gradient_6dp"
android:src="@mipmap/iv_hot" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/tv_hot_square_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@android:color/white"
android:textSize="@dimen/sp_13"
app:layout_constraintTop_toBottomOf="@+id/cardview_hot_square" />
</androidx.constraintlayout.widget.ConstraintLayout>