|
|
|
@ -1,45 +1,100 @@
|
|
|
|
|
<?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="match_parent"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<include layout="@layout/shoppingcart_title" />
|
|
|
|
|
<!--无商品时的布局-->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="160dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="150dp"
|
|
|
|
|
android:layout_height="150dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@drawable/gwc" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:text="Cart is Empty ~"
|
|
|
|
|
android:textColor="#B5B5B5"
|
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/random_search"
|
|
|
|
|
android:layout_width="180dp"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="25dp"
|
|
|
|
|
android:background="@drawable/button_login"
|
|
|
|
|
android:text="go shopping..."
|
|
|
|
|
android:textColor="#fff"
|
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<?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="match_parent"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!--无商品时的布局-->
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
layout="@layout/shoppingcart_title"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView"
|
|
|
|
|
android:layout_width="102dp"
|
|
|
|
|
android:layout_height="76dp"
|
|
|
|
|
android:src="@drawable/bl1" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text=" 商品名称:菠萝
|
|
|
|
|
数量:1 价格:10元 "
|
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:background="@drawable/button_login"
|
|
|
|
|
android:layout_height="38dp"
|
|
|
|
|
android:text="删除商品" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView2"
|
|
|
|
|
android:layout_width="103dp"
|
|
|
|
|
android:layout_height="78dp"
|
|
|
|
|
android:src="@drawable/yz1" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text=" 商品名称:柚子
|
|
|
|
|
数量:2 价格:12元 "
|
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/button2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:background="@drawable/button_login"
|
|
|
|
|
android:layout_height="38dp"
|
|
|
|
|
android:text="删除商品" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView3"
|
|
|
|
|
android:layout_width="104dp"
|
|
|
|
|
android:layout_height="61dp"
|
|
|
|
|
android:src="@drawable/cz2" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView4"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text=" 商品名称:橙子
|
|
|
|
|
数量:5 价格:60元 "
|
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/button3"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:background="@drawable/button_login"
|
|
|
|
|
android:layout_height="38dp"
|
|
|
|
|
android:text="删除商品" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView5"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="18dp"
|
|
|
|
|
android:text="
|
|
|
|
|
合计:82元 "
|
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/random_search"
|
|
|
|
|
android:layout_width="183dp"
|
|
|
|
|
android:layout_height="51dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:background="@drawable/button_register"
|
|
|
|
|
android:text="立即结算"
|
|
|
|
|
android:textColor="#fff"
|
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|