## activity_main
<RelativeLayout android:id="@+id/buttom_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:padding="10dp" > <LinearLayout android:id="@+id/btn_check_all" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:gravity="center_vertical" android:orientation="horizontal" > <ImageView android:id="@+id/img_check_all" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_checked" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:text="全选" /> </LinearLayout> <TextView android:id="@+id/tet_total_price" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="合计" android:textSize="16dp" android:layout_toRightOf="@id/btn_check_all" android:layout_centerVertical="true" android:layout_marginLeft="16dp" android:textStyle="bold" /> </RelativeLayout> <ExpandableListView android:id="@+id/cartList" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@id/buttom_layout" android:layout_alignParentTop="true" ></ExpandableListView>
### item_cart_produ
<RelativeLayout android:id="@+id/layout_arrow" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="8dp" > <TextView android:id="@+id/tet_arrow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:drawablePadding="8dp" android:drawableRight="@mipmap/ic_arrow" android:text="逛一逛" android:textSize="20dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_toLeftOf="@id/tet_arrow" android:text="优惠信息" /> </RelativeLayout> <RelativeLayout android:layout_below="@id/layout_arrow" android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/img_select" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:layout_marginLeft="10dp" android:src="@drawable/ic_checked" /> <ImageView android:id="@+id/img_product" android:layout_width="100dp" android:layout_height="100dp" android:layout_marginLeft="10dp" android:layout_toRightOf="@id/img_select" android:scaleType="centerCrop" android:src="@mipmap/ic_launcher" /> <TextView android:id="@+id/txt_product_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/img_product" android:layout_toRightOf="@id/img_product" android:textSize="14dp" /> <TextView android:id="@+id/txt_product_price" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:textColor="@color/colorAccent" android:layout_below="@+id/txt_product_name" android:layout_toRightOf="@+id/img_product" android:textSize="14sp" />
### iem_cart_seller
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:gravity="center_vertical" android:padding="10dp" android:layout_height="match_parent"> <ImageView android:id="@+id/img_select" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_checked" /> <TextView android:id="@+id/tet_seller_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@android:color/black" android:textSize="20dp" android:layout_marginLeft="10dp" /> </LinearLayout>