item_operation_panel.xml 6.67 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
6 7
    android:background="@drawable/list_selector_holo_light"
    android:descendantFocusability="blocksDescendants"
8 9 10 11 12
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
13
        android:layout_marginTop="10dp"
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
        android:layout_marginBottom="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:background="@drawable/panel_frame"
        android:orientation="vertical"
        android:paddingLeft="10dp"
        android:paddingRight="10dp"
        android:paddingTop="10dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <TextView
30
                android:id="@+id/operation_name"
31 32
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
33 34 35 36 37 38 39
                android:layout_marginTop="5dp"
                android:ellipsize="end"
                android:maxLines="1"
                android:text="@string/dummy_str"
                android:textColor="@color/operation_name"
                android:textSize="@dimen/app_large_text_size"
                android:textStyle="bold" />
40 41
        </LinearLayout>

42
        <LinearLayout
43 44 45 46 47 48
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:padding="5dp">

                <RelativeLayout
                    android:id="@+id/content_thumbnail_layout"
49 50 51
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="2"
52 53 54 55 56 57 58 59 60 61
                    android:layout_gravity="center">

                    <ImageButton
                        android:id="@+id/btn_information_update1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:layout_centerHorizontal="true"
                        android:background="@drawable/btn_information_update" />
                </RelativeLayout>
62

63 64

            <LinearLayout
65
                android:id="@+id/operation_date_layout"
66
                android:layout_width="match_parent"
67
                android:layout_height="match_parent"
68
                android:layout_centerInParent="true"
69 70 71 72 73
                android:layout_weight="1"
                android:layout_marginBottom="10dp"
                android:layout_marginTop="10dp"
                android:layout_toRightOf="@+id/content_thumbnail_layout"
                android:background="#dce6e6"
74
                android:orientation="vertical"
75
                android:padding="3dp"
76 77
                android:paddingBottom="10dp">

78 79 80 81 82 83 84 85 86
                <TextView
                    android:id="@+id/operation_date"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:maxLines="1"
                    android:text="@string/dummy_date"
                    android:textColor="@color/operation_date"
                    android:textSize="@dimen/operation_normal_text_size" />
87 88

            </LinearLayout>
89 90

        </LinearLayout>
91 92 93 94 95

        <LinearLayout
            android:id="@+id/button_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
96
            android:background="@drawable/operation_border"
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
            android:orientation="horizontal"
            android:padding="5dp"
            android:visibility="visible">

            <LinearLayout
                android:id="@+id/edit_layout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:gravity="center"
                android:orientation="horizontal"
                android:padding="5dp"
                android:visibility="visible">

                <LinearLayout
                    android:id="@+id/layout_pano_edit"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="10dp"
                    android:orientation="vertical"
                    android:visibility="visible">

                    <ImageView
                        android:id="@+id/btn_pano_edit"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/btn_pano_edit" />

                    <TextView
                        android:id="@+id/txt_pano_edit"
                        style="@style/ProjectIconText"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/pano_edit" />
                </LinearLayout>
            </LinearLayout>

            <LinearLayout
                android:id="@+id/update_layout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:gravity="center"
                android:orientation="horizontal"
                android:padding="5dp"
                android:visibility="visible">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="10dp"
                    android:orientation="vertical">

                    <ImageButton
                        android:id="@+id/btn_information_update"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/btn_information_update" />

                    <TextView
                        android:id="@+id/txt_information_update"
                        style="@style/ProjectIconText"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/information_update" />
                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
</LinearLayout>