item_spec_rule.xml 1.89 KB
Newer Older
wjg committed
1
<?xml version="1.0" encoding="utf-8"?>
wjg committed
2 3
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
wjg committed
4
    android:layout_width="wrap_content"
wjg committed
5 6
    android:layout_height="wrap_content"
    android:paddingTop="@dimen/goods_detail_rule_margin_top">
wjg committed
7 8 9 10
    <TextView
        android:id="@+id/butn_rule"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
wjg committed
11 12
        android:layout_marginTop="@dimen/goods_detail_rule_margin_top"
        android:layout_marginEnd="@dimen/goods_detail_rule_margin_right"
wjg committed
13
        android:background="@drawable/sel_spec_bg"
wjg committed
14
        android:foreground="@null"
wjg committed
15 16
        android:gravity="center"
        android:minWidth="@dimen/goods_detail_rule_width"
wjg committed
17 18
        android:paddingHorizontal="@dimen/goods_detail_rule_padding_hor"
        android:paddingVertical="@dimen/goods_detail_rule_padding_ver"
wjg committed
19 20 21 22 23 24 25 26 27 28 29 30 31
        android:singleLine="true"
        android:text="加糖"
        android:textColor="@drawable/sel_spec_color"
        android:textSize="@dimen/ts_detail_rule"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/txt_recommend"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/bg_spec_recommend"
wjg committed
32 33
        android:paddingHorizontal="@dimen/goods_detail_rec_padding_hor"
        android:paddingVertical="@dimen/goods_detail_rec_padding_ver"
wjg committed
34 35 36
        android:text="推荐"
        android:textColor="@color/white"
        android:textSize="@dimen/ts_detail_spec_rec"
wjg committed
37
        android:visibility="gone"
wjg committed
38 39 40
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>