item_operation_panel.xml 6.22 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:tools="http://schemas.android.com/tools"
4 5 6
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
7 8
    android:background="@drawable/list_selector_holo_light"
    android:descendantFocusability="blocksDescendants"
Lee Jaebin committed
9 10 11
    android:paddingTop="20dp"
    android:paddingRight="10dp"
    android:paddingLeft="10dp"
12 13
    android:orientation="vertical"
    tools:ignore="MissingDefaultResource">
14 15

    <LinearLayout
Lee Jaebin committed
16
        android:id="@+id/panel_layout"
17
        android:layout_width="match_parent"
18
        android:layout_height="200dp"
19
        android:background="@drawable/panel_frame"
20
        android:orientation="vertical">
21 22 23

        <LinearLayout
            android:layout_width="match_parent"
24
            android:layout_height="wrap_content"
Lee Jaebin committed
25 26 27 28
            android:layout_marginRight="15dp"
            android:layout_marginLeft="15dp"
            android:layout_marginTop="15dp"
            android:layout_marginBottom="10dp">
29

30
            <LinearLayout
31
                android:layout_width="wrap_content"
32
                android:layout_height="match_parent">
33

34 35
                <ImageView
                    android:id="@+id/report_type"
36 37
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
38
                    android:layout_gravity="center_vertical"
39
                    android:layout_marginRight="10dp" />
40

41 42
                <ImageView
                    android:id="@+id/operation_type"
43
                    android:layout_width="wrap_content"
44 45 46
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginRight="10dp" />
47 48 49 50 51 52 53 54 55 56 57 58
            </LinearLayout>

            <Space
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"/>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:layout_marginRight="10dp" >
59 60 61 62

                <TextView
                    android:id="@+id/report_count_not_started"
                    android:layout_width="@dimen/report_status_width_2"
63
                    android:layout_height="@dimen/report_status_height_2"
64 65 66 67 68 69 70 71 72 73
                    android:layout_margin="2dp"
                    android:layout_gravity="center_vertical"
                    android:textColor="@color/basic_white1"
                    android:textSize="9pt"
                    android:gravity="center"
                    android:background="@color/marking_color_9"
                    />
                <TextView
                    android:id="@+id/report_count_working"
                    android:layout_width="@dimen/report_status_width_2"
74
                    android:layout_height="@dimen/report_status_height_2"
75 76 77 78 79 80 81 82 83 84
                    android:layout_margin="2dp"
                    android:layout_gravity="center_vertical"
                    android:textColor="@color/basic_white1"
                    android:textSize="9pt"
                    android:gravity="center"
                    android:background="@color/app_color"
                    />
                <TextView
                    android:id="@+id/report_count_completed"
                    android:layout_width="@dimen/report_status_width_2"
85
                    android:layout_height="@dimen/report_status_height_2"
86 87 88 89 90 91 92
                    android:layout_margin="2dp"
                    android:layout_gravity="center_vertical"
                    android:textColor="@color/basic_white1"
                    android:textSize="9pt"
                    android:gravity="center"
                    android:background="@color/marking_color_8"
                    />
93

94
            </LinearLayout>
95

96
            <LinearLayout
97
                android:layout_width="wrap_content"
98
                android:layout_height="match_parent"
99
                android:layout_gravity="right"
100 101
                android:gravity="right"
                android:orientation="horizontal">
102

103
                <ImageButton
104
                    android:id="@+id/btn_sync"
105 106
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
107 108
                    android:layout_marginLeft="10dp"
                    android:background="@drawable/ic_reload_panel" />
109
            </LinearLayout>
110
        </LinearLayout>
111

112 113
        <View
            android:id="@+id/view3"
Lee Jaebin committed
114 115
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
116 117 118 119
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@color/line_side" />

120 121
        <LinearLayout
            android:layout_width="match_parent"
Lee Jaebin committed
122 123 124
            android:layout_height="match_parent"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
Lee Jaebin committed
125
            android:layout_marginTop="5dp"
126
            android:orientation="vertical">
127

128 129
            <TextView
                android:id="@+id/operation_name"
Lee Jaebin committed
130
                android:layout_width="match_parent"
131 132 133
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:maxLines="2"
Lee Jaebin committed
134
                android:layout_weight="1"
135 136
                android:text="@string/dummy_str"
                android:textColor="@color/operation_name"
Lee Jaebin committed
137
                android:textSize="@dimen/operation_name_size"
138
                android:textStyle="bold" />
139

140 141
            <TextView
                android:id="@+id/operation_date"
Lee Jaebin committed
142
                android:layout_width="match_parent"
143
                android:layout_height="wrap_content"
Lee Jaebin committed
144 145
                android:gravity="bottom"
                android:layout_marginBottom="10dp"
146
                android:ellipsize="end"
Lee Jaebin committed
147
                android:layout_weight="1"
Lee Jaebin committed
148
                android:maxLines="2"
149 150
                android:text="@string/dummy_date"
                android:textColor="@color/operation_date"
Lee Jaebin committed
151
                android:textSize="@dimen/operation_date_text_size" />
152 153 154
        </LinearLayout>
    </LinearLayout>
</LinearLayout>