Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • saleCenter
  • src
  • main
  • res
  • layout
  • item_sale_product.xml
Find file
BlameHistoryPermalink
  • han xu's avatar
    241115需求开发 · 017a5e0d
    han xu committed 6 months ago
    017a5e0d
item_sale_product.xml 5.13 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/dp_13.3"
        android:layout_marginTop="5dp"
        android:layout_marginRight="@dimen/dp_13.3"
        android:background="@drawable/item_shape"
        android:orientation="horizontal"
        android:padding="@dimen/dp_10">

        <ImageView
            android:id="@+id/iv_img"
            android:layout_width="108dp"
            android:layout_height="108dp" />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/dp_15"
            android:layout_weight="1"
            android:orientation="vertical">

            <LinearLayout style="@style/sale_linearlayout">

                <TextView
                    android:id="@+id/tv_brand_model"
                    style="@style/sale_item_text2"
                    android:layout_width="0dp"
                    android:layout_weight="1"
                    android:textStyle="bold" />

                <ImageView
                    android:id="@+id/collectIcon"
                    android:layout_width="20dp"
                    android:layout_height="20dp"
                    android:src="@drawable/icon_un_collect" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/ll_commision"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/dp_10"
                android:layout_marginTop="5dp"
                android:orientation="horizontal">

                <TextView
                    style="@style/sale_item_text"
                    android:textSize="@dimen/dp_12"
                    android:text="商机奖励/销售提成:" />

                <TextView
                    android:id="@+id/tv_commision"
                    style="@style/sale_item_text2"
                    android:textSize="@dimen/dp_12"
                    android:text="00"
                    android:textColor="@color/common_red" />

            </LinearLayout>

            <RelativeLayout
                android:id="@+id/rl_single_price"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_marginTop="5dp"
                android:layout_marginRight="5dp"
                android:visibility="gone">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"

                    android:orientation="horizontal">

                    <TextView
                        android:id="@+id/tv_single_price_text"
                        style="@style/sale_item_text"
                        android:textSize="@dimen/dp_12"
                        android:text="商机奖金:" />

                    <TextView
                        android:id="@+id/tv_single_price"
                        style="@style/sale_item_text2"
                        android:textSize="@dimen/dp_12"
                        android:text="00"
                        android:textColor="@color/common_red" />

                </LinearLayout>


            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="15dp"
                android:orientation="horizontal">



                <LinearLayout
                    android:id="@+id/btn_share"
                    android:layout_width="80dp"
                    android:layout_height="wrap_content"
                    android:background="@drawable/btn_green_commom"
                    android:gravity="center">

                    <TextView
                        android:id="@+id/tv_share"
                        android:layout_width="wrap_content"
                        android:layout_height="30dp"
                        android:drawablePadding="10dp"
                        android:gravity="center"
                        android:text="转发推荐"
                        android:textColor="@color/white" />
                </LinearLayout>

                <TextView
                    android:id="@+id/award"
                    android:layout_width="wrap_content"
                    android:layout_height="30dp"
                    android:layout_alignParentRight="true"
                    android:layout_gravity="right"
                    android:background="@drawable/btn_blue_react_4"
                    android:gravity="center"
                    android:paddingStart="10dp"
                    android:paddingEnd="10dp"
                    android:text="贡献商机"
                    android:layout_marginRight="@dimen/dp_15"
                    android:textColor="@color/white"/>

            </RelativeLayout>

        </LinearLayout>

    </LinearLayout>

</layout>