<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
<com.facebook.drawee.view.SimpleDraweeView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:id="@+id/iv_goods"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginTop="20dp"
|
app:layout_constraintDimensionRatio="1:1"
|
android:layout_marginStart="12dp"
|
android:layout_marginEnd="12dp"
|
app:actualImageScaleType="centerCrop"
|
app:placeholderImage="@color/page_bg"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_name"
|
app:layout_constraintTop_toBottomOf="@id/iv_goods"
|
android:text="Iphone11 pro max"
|
android:textSize="15sp"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"
|
android:gravity="center"
|
android:singleLine="true"
|
android:ellipsize="end"
|
android:layout_marginStart="12dp"
|
android:layout_marginEnd="12dp"
|
android:layout_marginTop="7dp"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_score"
|
app:layout_constraintTop_toBottomOf="@id/tv_name"
|
android:text="Iphone11 pro max"
|
android:textSize="12sp"
|
android:textColor="@color/textColor"
|
android:gravity="center"
|
android:layout_marginStart="12dp"
|
android:layout_marginEnd="12dp"
|
android:layout_marginTop="2dp"/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/tv_score"
|
android:layout_marginTop="20dp" />
|
</androidx.constraintlayout.widget.ConstraintLayout>
|