网友通过本文主要向大家介绍了硅谷商城,硅谷,硅谷亮城写字楼,济南硅谷培训学校,领秀新硅谷二手房等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
硅谷商城第二版6--购物车模块,6--购物车

fragment_shoppingcart.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="#fff">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="30dp"
android:layout_weight="1"
android:text="购物车"
android:textColor="#303235"
android:textSize="20sp" />
<TextView
android:id="@+id/tv_shopcart_edit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="编辑"
android:textColor="#303235" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="#eeee" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dp"
android:background="#eee" />
<LinearLayout
android:id="@+id/ll_check_all"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
android:orientation="horizontal"
android:visibility="visible">
<CheckBox
android:id="@+id/checkbox_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:button="@null"
android:drawableLeft="@drawable/checkbox_selector"
android:drawablePadding="10dp"
android:padding="10dp"
android:paddingLeft="0dp"
android:text="全选"
android:textColor="#303235"
android:textSize="15sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="合计:"
android:textColor="#303235"
android:textSize="15sp" />
<TextView
android:id="@+id/tv_shopcart_total"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="10dp"
android:text="¥0.00"
android:textColor="#ed3f3f"
android:textSize="15sp" />
<Button
android:id="@+id/btn_check_out"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#ed3f3f"
android:text="去结算"
android:textColor="#fff" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_delete"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
android:orientation="horizontal"
android:padding="5dp"
android:visibility="gone">
<CheckBox
android:id="@+id/cb_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_weight="1"
android:button="@null"
android:drawableLeft="@drawable/checkbox_selector"
android:drawablePadding="10dp"
android:padding="10dp"
android:paddingLeft="0dp"
android:text="全选"
android:textColor="#303235"
android:textSize="15sp" />
<Button
android:id="@+id/btn_delete"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:background="@drawable/words"
android:text="删除"
android:textColor="#303235"
android:textSize="15sp" />
<Button
android:id="@+id/btn_collection"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginLeft="15dp"
android:background="@drawable/wordsred"
android:text="收藏"
android:textColor="#ed3f3f"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
<include layout="@layout/empty_cart" />
</FrameLayout>
</LinearLayout>
1、采用自定义技术实现购物车的加减号;
2、采用CartStorage实现购物车业务的处理;
3、采用popupwindow实现购物车的对话框
4、实现联系客服功能;
5、采用Html5和Android互调技术实现详情页面;
6、集成支付宝支付功能;

