item_mch_packs.xml 4.3 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:background="#ffffff"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="80dp">
        <!--<com.mchsdk.paysdk.view.round.CircleImageView-->
        <!--android:id="@+id/iv_mch_pack_image"-->
        <!--android:layout_width="70dp"-->
        <!--android:layout_height="70dp"-->
        <!--android:layout_centerVertical="true"-->
        <!--android:layout_gravity="left|center_vertical"-->
        <!--android:layout_margin="10dp"-->
        <!--android:scaleType="center"-->
        <!--app:borderRadius="10dp"-->
        <!--app:type="round"-->
        <!--android:src="@drawable/pack_image_new" />-->

        <ImageView
            android:id="@+id/iv_mch_pack_image"
            android:layout_width="53dp"
            android:layout_height="53dp"
            android:layout_centerVertical="true"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="3dp"
            android:scaleType="center"
            android:src="@drawable/pack_image_new" />


        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@+id/iv_mch_pack_image">

            <Button
                android:id="@+id/btn_mch_receive_pack"
                android:layout_width="60dp"
                android:layout_height="30dp"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="16dp"
                android:background="@drawable/mch_cricle_5dp_bg_blue"
                android:text="领取"
                android:textColor="#ffffff"
                android:textSize="14sp" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_toLeftOf="@+id/btn_mch_receive_pack"
                android:orientation="vertical"
                android:paddingLeft="10dp"
                android:paddingRight="4dp">

                <TextView
                    android:id="@+id/txt_mch_pack_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:maxLines="1"
                    android:text="《我欲封仙》新手礼包"
                    android:textColor="@color/color_020202"
                    android:textSize="18sp" />

                <TextView
                    android:id="@+id/txt_mch_pack_desc"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="6dp"
                    android:ellipsize="end"
                    android:maxLines="2"
                    android:text="礼包介绍"
                    android:textColor="#666666"
                    android:textSize="12sp" />
            </LinearLayout>
        </RelativeLayout>
    </RelativeLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="right"
        android:orientation="vertical">

        <TextView
            android:id="@+id/txt_mch_pack_effective"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginTop="8dp"
            android:layout_marginRight="10dp"
            android:paddingBottom="5dp"
            android:text="兑换截止:2016-11-09 00:00"
            android:textSize="11sp" />

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginLeft="76dp"
            android:layout_marginTop="10dp"
            android:layout_marginRight="16dp"
            android:background="@color/color_F8F8F8" />


    </LinearLayout>

</LinearLayout>