platform_dialog_share.xml 14.8 KB
Newer Older
konghaorui committed
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/rl_root"
6
    android:layout_width="match_parent"
konghaorui committed
7 8 9 10 11 12 13 14 15 16 17 18
    android:layout_height="match_parent"
    android:background="#00000000">


    <android.support.v7.widget.CardView
        android:id="@+id/cv_pic"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/ll_share"
        android:layout_marginStart="68dp"
        android:layout_marginEnd="68dp"
        android:layout_marginBottom="-25dp"
19
        android:clickable="true"
konghaorui committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
        android:visibility="gone"
        app:cardCornerRadius="10dp"
        tools:visibility="visible">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <ImageView
                android:id="@+id/img_pic"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:scaleType="fitXY"
                tools:layout_height="100dp" />

            <TextView
                android:id="@+id/tv_save_pic"
                android:layout_width="wrap_content"
                android:layout_height="40dp"
                android:layout_gravity="center_horizontal"
                android:background="?android:attr/selectableItemBackground"
konghaorui committed
43
                android:drawableLeft="@drawable/platform_icon_download"
konghaorui committed
44 45 46
                android:drawablePadding="6dp"
                android:gravity="center_vertical"
                android:text="保存图片"
konghaorui committed
47
                android:textColor="@color/platform_color_242424"
konghaorui committed
48 49 50 51 52 53 54 55 56 57
                android:textSize="12sp" />
        </LinearLayout>

    </android.support.v7.widget.CardView>

    <LinearLayout
        android:id="@+id/ll_share"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
konghaorui committed
58
        android:background="@drawable/platform_share_dialog_bg"
59
        android:clickable="true"
konghaorui committed
60 61 62 63 64 65 66 67
        android:orientation="vertical"
        android:paddingLeft="12.5dp"
        android:paddingRight="12.5dp">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="7.5dp"
konghaorui committed
68
            android:layout_marginTop="@dimen/platform_dp_24"
konghaorui committed
69
            android:text="分享到"
konghaorui committed
70 71
            android:textColor="@color/platform_color_242424"
            android:textSize="@dimen/platform_dp_18"
konghaorui committed
72 73 74 75 76 77
            android:textStyle="bold" />

        <LinearLayout
            android:id="@+id/ll_layout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
konghaorui committed
78
            android:layout_marginTop="@dimen/platform_dp_18"
konghaorui committed
79 80
            android:orientation="horizontal">

81 82 83 84 85 86 87 88 89 90 91 92
            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_poster"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical"
                android:visibility="gone">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
93
                    android:background="@drawable/platform_share_icon_poster" />
94 95 96 97 98

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
99
                    android:layout_marginTop="@dimen/platform_dp_8"
100
                    android:text="生成海报"
konghaorui committed
101
                    android:textColor="@color/platform_color_242424"
konghaorui committed
102
                    android:textSize="@dimen/platform_dp_12" />
103 104 105 106 107 108 109 110 111 112 113 114 115 116
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_save"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical"
                android:visibility="gone">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
117
                    android:background="@drawable/platform_share_icon_download" />
118 119 120 121 122

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
123
                    android:layout_marginTop="@dimen/platform_dp_8"
124
                    android:text="保存本地"
konghaorui committed
125
                    android:textColor="@color/platform_color_242424"
konghaorui committed
126
                    android:textSize="@dimen/platform_dp_12" />
127 128
            </LinearLayout>

konghaorui committed
129 130 131 132 133 134 135 136 137 138 139
            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_dynamic"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
140
                    android:background="@drawable/platform_share_icon_dynamic" />
konghaorui committed
141 142 143 144 145

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
146
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
147
                    android:text="动态"
konghaorui committed
148
                    android:textColor="@color/platform_color_242424"
konghaorui committed
149
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
150 151 152 153 154 155 156 157 158 159 160 161 162
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_weixin"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
163
                    android:background="@drawable/platform_share_icon_weixin" />
konghaorui committed
164 165 166 167 168

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
169
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
170
                    android:text="微信好友"
konghaorui committed
171
                    android:textColor="@color/platform_color_242424"
konghaorui committed
172
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
173 174 175 176 177 178 179 180 181 182 183 184 185
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_friends"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
186
                    android:background="@drawable/platform_share_icon_friends" />
konghaorui committed
187 188 189 190 191

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
192
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
193
                    android:text="朋友圈"
konghaorui committed
194
                    android:textColor="@color/platform_color_242424"
konghaorui committed
195
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
196 197 198 199 200 201 202 203 204 205 206 207 208
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_qqzone"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
209
                    android:background="@drawable/platform_share_icon_qqzone" />
konghaorui committed
210 211 212 213 214

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
215
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
216
                    android:text="QQ空间"
konghaorui committed
217
                    android:textColor="@color/platform_color_242424"
konghaorui committed
218
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
219 220 221 222 223 224 225 226 227 228 229 230 231
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_qq"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
232
                    android:background="@drawable/platform_share_icon_qq" />
konghaorui committed
233 234 235 236 237

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
238
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
239
                    android:text="QQ好友"
konghaorui committed
240
                    android:textColor="@color/platform_color_242424"
konghaorui committed
241
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
242 243 244 245 246 247 248 249
            </LinearLayout>
        </LinearLayout>

        <!--第二排-->
        <LinearLayout
            android:id="@+id/ll_layout2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
konghaorui committed
250
            android:layout_marginTop="@dimen/platform_dp_18"
konghaorui committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264
            android:orientation="horizontal">

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_delete"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="7.5dp"
                android:layout_marginRight="7.5dp"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
265
                    android:background="@drawable/platform_share_icon_delete" />
konghaorui committed
266 267 268 269 270

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
271
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
272
                    android:text="删除"
konghaorui committed
273
                    android:textColor="@color/platform_color_242424"
konghaorui committed
274
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
275 276 277 278 279 280 281 282 283 284 285 286 287 288
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_report"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="7.5dp"
                android:layout_marginRight="7.5dp"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
289
                    android:background="@drawable/platform_share_icon_report" />
konghaorui committed
290 291 292 293 294

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
295
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
296
                    android:text="举报"
konghaorui committed
297
                    android:textColor="@color/platform_color_242424"
konghaorui committed
298
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
299 300 301 302 303 304 305 306 307 308 309 310 311 312
            </LinearLayout>

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/ll_backhome"
                android:layout_width="55dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="7.5dp"
                android:layout_marginRight="7.5dp"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="55dp"
                    android:layout_height="55dp"
                    android:layout_gravity="center_horizontal"
konghaorui committed
313
                    android:background="@drawable/platform_share_icon_backhome" />
konghaorui committed
314 315 316 317 318

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
konghaorui committed
319
                    android:layout_marginTop="@dimen/platform_dp_8"
konghaorui committed
320
                    android:text="返回首页"
konghaorui committed
321
                    android:textColor="@color/platform_color_242424"
konghaorui committed
322
                    android:textSize="@dimen/platform_dp_12" />
konghaorui committed
323 324 325 326 327
            </LinearLayout>
        </LinearLayout>

        <View
            android:layout_width="match_parent"
konghaorui committed
328
            android:layout_height="@dimen/platform_dp_05"
konghaorui committed
329 330
            android:layout_marginTop="@dimen/platform_dp_13"
            android:background="@color/platform_color_E0E0E0" />
konghaorui committed
331 332 333 334 335 336 337

        <TextView
            android:id="@+id/tv_cancel"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:gravity="center"
konghaorui committed
338 339
            android:paddingTop="@dimen/platform_dp_19"
            android:paddingBottom="@dimen/platform_dp_17"
konghaorui committed
340
            android:text="取消"
konghaorui committed
341
            android:textColor="@color/platform_color_242424"
konghaorui committed
342
            android:textSize="@dimen/platform_dp_16" />
konghaorui committed
343 344 345
    </LinearLayout>

</RelativeLayout>