| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="utf-8"?>
- <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.cardview.widget.CardView
- android:id="@+id/cv_goods"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:focusable="true"
- android:foreground="?android:attr/selectableItemBackground"
- app:cardCornerRadius="@dimen/height_indicator"
- app:cardElevation="@dimen/margin_sss"
- app:cardUseCompatPadding="true">
- <!--app:cardUseCompatPadding="true"解决角边阴影问题-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="@dimen/margin_s">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/aciv_goods"
- android:layout_width="@dimen/size_image_list"
- android:layout_height="@dimen/size_image_list"
- android:scaleType="center"
- android:src="@mipmap/logo_gray"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin_s"
- android:minHeight="@dimen/size_image_list"
- android:orientation="vertical">
- <!--标题-->
- <TextView
- android:id="@+id/tv_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/margin_ss"
- android:ellipsize="end"
- android:maxLines="2"
- android:textColor="@color/black"
- android:textSize="@dimen/text_normal" />
- <Space
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_weight="1" />
- <!--一句话推荐-->
- <TextView
- android:id="@+id/tv_reason"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/margin_ss"
- android:background="@drawable/shape_gray_tag"
- android:ellipsize="end"
- android:paddingStart="@dimen/margin_s"
- android:paddingTop="@dimen/padding_tag"
- android:paddingEnd="@dimen/margin_s"
- android:paddingBottom="@dimen/padding_tag"
- android:singleLine="true"
- android:textColor="@color/jd_gray_bg_text"
- android:textSize="@dimen/text_ss" />
- <Space
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_weight="1" />
- <!--价格-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tv_old_price"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@color/jd_gray_text"
- android:textSize="@dimen/text_normal"
- android:textStyle="bold"
- android:visibility="gone"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@color/black_theme"
- android:textSize="@dimen/text_normal"
- android:textStyle="bold"
- android:text=" - "
- android:visibility="gone"/>
- <TextView
- android:id="@+id/tv_now_price"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@color/jd_red_price"
- android:textSize="@dimen/text_normal"
- android:textStyle="bold" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@color/jd_gray_text"
- android:textSize="@dimen/text_normal"
- android:textStyle="bold"
- android:text=" = "
- android:visibility="gone"/>
- <TextView
- android:id="@+id/tv_rebate"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="wrap_content"
- android:textColor="@color/black_theme"
- android:textSize="@dimen/text_normal"
- android:singleLine="true"
- android:ellipsize="marquee"
- android:marqueeRepeatLimit="marquee_forever"
- android:scrollHorizontally="true"
- android:textStyle="bold"
- android:visibility="gone"/>
- </LinearLayout>
- <Space
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_weight="1" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <!--自营-->
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/margin_ss"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tv_self"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/shape_red_tag_gradient"
- android:paddingStart="@dimen/margin_tag"
- android:paddingTop="@dimen/padding_tag"
- android:paddingEnd="@dimen/margin_tag"
- android:paddingBottom="@dimen/padding_tag"
- android:text="自营"
- android:textColor="@color/white_slight"
- android:textSize="@dimen/text_sss" />
- <TextView
- android:id="@+id/tv_shop_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginStart="@dimen/margin_ss"
- android:ellipsize="end"
- android:singleLine="true"
- android:textColor="@color/gray_text_s"
- android:textSize="@dimen/text_shop_name" />
- </LinearLayout>
- <!--好评-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/shape_purple_tag_gradient"
- android:paddingStart="@dimen/margin_tag"
- android:paddingTop="@dimen/padding_tag"
- android:paddingEnd="@dimen/margin_tag"
- android:paddingBottom="@dimen/padding_tag"
- android:text="好评"
- android:textColor="@color/white_slight"
- android:textSize="@dimen/text_sss" />
- <TextView
- android:id="@+id/tv_good_comment"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/shape_purple_stroke_right"
- android:ellipsize="end"
- android:paddingStart="@dimen/margin_tag"
- android:paddingTop="@dimen/padding_tag"
- android:paddingEnd="@dimen/margin_tag"
- android:paddingBottom="@dimen/padding_tag"
- android:singleLine="true"
- android:textColor="@color/black_text"
- android:textSize="@dimen/text_sss"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tv_sales_per_month"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="end"
- android:layout_marginStart="@dimen/margin_ss"
- android:paddingStart="@dimen/margin_sss"
- android:paddingEnd="@dimen/margin_sss"
- android:ellipsize="end"
- android:singleLine="true"
- android:textColor="@color/gray_text_s"
- android:textSize="@dimen/text_shop_name" />
- </LinearLayout>
- </LinearLayout>
- <!--<LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:gravity="bottom">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/shape_black_radius_transparent"
- android:gravity="center"
- android:orientation="vertical"
- android:padding="@dimen/margin_ss"
- android:layout_marginStart="@dimen/margin_ss"
- android:visibility="gone">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="购买返现"
- android:textColor="@color/white_slight"
- android:textSize="@dimen/text_rebate_tips" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@color/jd_yellow_bg_tag_select_from"
- android:textSize="@dimen/text_s" />
- </LinearLayout>
- </LinearLayout>-->
- </LinearLayout>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- </FrameLayout>
|