ListView布局包括checkbox(复选框)、img、title(商品名称)、type(分类)、两个Button(加减)、三个textview(原价,单价,数量),imgDelete(delete)
这里写图片描述
xml:
android:layout_width="match_parent"
android:layout_height="90dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
android:id="@+id/shopping_lv_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_10"
android:focusable="false"
android:focusableInTouchMode="false" />
android:id="@+id/shopping_lv_img"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="10dp"
android:scaleType="centerCrop"
android:src="@mipmap/tuceng1" />
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:gravity="center_vertical">
<