Files
XiaoxintongSystemOS/app/src/main/res/layout/item_new_goods.xml
Fanhuitong 4657e3ad2b version:1.0.1
update:优化屏幕适配,更换图标
bugfixes:
2024-07-13 15:22:39 +08:00

65 lines
2.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.shehuan.niv.NiceImageView
android:id="@+id/nv_goods_pic"
android:layout_width="100dp"
android:layout_height="130dp"
android:layout_marginStart="16dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
app:corner_radius="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_goods_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:maxLines="3"
android:textColor="@color/black"
android:textSize="11sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/nv_goods_pic"
app:layout_constraintTop_toTopOf="@+id/nv_goods_pic"
tools:text="可益康 中粮 红枸杞原浆 滋补鲜枸杞汁枸杞子原液节日礼品礼盒 枸杞原浆[买1发2买2发5]" />
<TextView
android:id="@+id/tv_goods_pirce"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:textColor="@color/red"
android:textSize="14sp"
app:layout_constraintBottom_toTopOf="@+id/tv_buy"
app:layout_constraintStart_toStartOf="@+id/tv_goods_title"
app:layout_constraintTop_toBottomOf="@+id/tv_goods_title"
tools:text="热卖促销¥268" />
<TextView
android:id="@+id/tv_buy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/buy_button_bg"
android:text="立即抢购"
android:textColor="@color/white"
android:textSize="11sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/nv_goods_pic"
app:layout_constraintEnd_toEndOf="@+id/tv_goods_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>