child_list_item_ldip.xml 5.84 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#ffffff"
    android:orientation="vertical" >

    <View
        android:id="@+id/xuxian"
        android:layout_width="match_parent"
        android:layout_height="1.5px"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="1dp"
        android:layout_marginTop="15dp"
        android:layerType="software"
        android:background="#99333333"/>

        <TextView
            android:id="@+id/child_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="15dp"
            android:layout_marginLeft="20dp"
            android:textColor="#666666"
            android:text="羊台山门票"
            android:textSize="20dp" />

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

        <TextView
            android:id="@+id/child_startDate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="20dp"
            android:textColor="#999999"
            android:text="2015-09-09"
            android:textSize="16dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="2dp"
            android:text=" 至 "
            android:textColor="#999999"
            android:textSize="16dp" />

            <TextView
                android:id="@+id/child_endDate"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="2dp"
                android:textColor="#999999"
                android:text="2015-09-10"
                android:textSize="16dp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="2dp"
                android:text=" 内有效"
                android:textColor="#999999"
                android:textSize="16dp" />

    </LinearLayout>


    
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="15dp"
        android:layout_marginLeft="20dp"
        android:layout_marginBottom="15dp"
        >

        <LinearLayout
            android:id="@+id/num_total"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="共 "
                android:textColor="#666666"
                android:textSize="16dp" />

            <TextView
                android:id="@+id/child_totalQuantity"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="3 "
                android:textColor="#ff9900"
                android:textSize="18sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=" 张 |"
                android:textColor="#666666"
                android:textSize="16sp" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/num_cost"
            android:layout_toRightOf="@id/num_total"
            android:layout_marginLeft="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="已消费 "
                android:textColor="#666666"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/child_consumedQuantity"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="0 "
                android:textColor="#ff9900"
                android:textSize="18sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=" 张 |"
                android:textColor="#666666"
                android:textSize="16sp" />


        </LinearLayout>

        <LinearLayout
            android:layout_toRightOf="@id/num_cost"
            android:layout_marginLeft="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="剩余 "
                android:textColor="#666666"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/child_quantity"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="3"
                android:textColor="#ff9900"
                android:textSize="18sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=" 张 "
                android:textColor="#666666"
                android:textSize="16sp" />

        </LinearLayout>

    </RelativeLayout>


</LinearLayout>