沈斌
2017-01-02 26008989ed5af5eaad82ce29d9a8b8e2e35e2254
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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="80dp"
    android:layout_marginLeft="30dp"
    android:layout_marginRight="30dp"
    android:background="#ffffff"
    android:gravity="center_vertical"
    android:weightSum="1">
 
    <ImageView
        android:id="@+id/image"
        android:layout_width="60dp"
        android:layout_height="60dp"
        android:src="@drawable/icon" />
 
    <TextView
        android:id="@+id/name"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:text="@string/good_item_name"
        android:textSize="14sp" />
 
    <TextView
        android:id="@+id/count"
        android:layout_width="30dp"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dp"
        android:maxLength="2"
        android:text="1"
        android:singleLine="true"
        android:textColor="#ffff3230" />
 
 
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginRight="5dp"
        android:text="¥" />
 
    <TextView
        android:id="@+id/price"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="699.00" />
 
    <Button
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:text="-"
        android:layout_marginRight="10dp"
        android:layout_marginLeft="5dp"
        android:background="#ffffffff"
        android:id="@+id/reduceCount" />
 
    <Button
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:text="+"
        android:layout_marginRight="10dp"
        android:background="#ffffffff"
        android:id="@+id/addCount" />
 
</LinearLayout>