share_popup.xml revision abd82edfae4ab1a39fe7000dd22b7cab26e9fdaf
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- Use a full-screen popup window because UI has some intermediate problems
18     when its size is changed. -->
19<FrameLayout
20        xmlns:android="http://schemas.android.com/apk/res/android"
21        xmlns:camera="http://schemas.android.com/apk/res/com.android.camera"
22        android:layout_width="match_parent"
23        android:layout_height="match_parent"
24        android:background="@color/share_popup_background">
25    <FrameLayout android:id="@+id/root"
26            android:layout_width="wrap_content"
27            android:layout_height="wrap_content"
28            android:layout_gravity="left|center">
29        <com.android.camera.ui.RotateLayout
30                android:id="@+id/thumbnail_rotate_layout"
31                android:layout_width="wrap_content"
32                android:layout_height="wrap_content"
33                android:layout_alignParentRight="true">
34            <!-- The size of the thumbnail is calculated in SharePopup.java -->
35            <FrameLayout
36                    android:layout_width="wrap_content"
37                    android:layout_height="wrap_content" >
38                <com.android.camera.ui.StackLayout
39                        android:layout_width="wrap_content"
40                        android:layout_height="wrap_content">
41                    <ImageView android:id="@+id/thumbnail"
42                            android:layout_width="wrap_content"
43                            android:layout_height="wrap_content"
44                            android:adjustViewBounds="true"
45                            android:scaleType="fitCenter"/>
46                    <View
47                            android:id="@+id/thumbnail_image_frame"
48                            android:layout_width="wrap_content"
49                            android:layout_height="wrap_content"
50                            android:padding="0dp"
51                            android:background="@drawable/border_last_picture"
52                            android:clickable="true"/>
53                </com.android.camera.ui.StackLayout>
54                <ImageView android:id="@+id/play"
55                        android:layout_width="wrap_content"
56                        android:layout_height="wrap_content"
57                        android:layout_gravity="center"
58                        android:scaleType="center"
59                        style="@style/ReviewPlayIcon"/>
60            </FrameLayout>
61        </com.android.camera.ui.RotateLayout>
62        <LinearLayout
63                android:layout_width="@dimen/share_item_width"
64                android:layout_height="match_parent"
65                android:orientation="vertical"
66                android:layout_gravity="right"
67                android:background="@color/share_icon_background">
68            <com.android.camera.ui.RotateLayout
69                    android:id="@+id/goto_gallery_button_rotate"
70                    android:layout_gravity="center"
71                    android:layout_width="match_parent"
72                    android:layout_height="@dimen/share_item_width" >
73                <ImageButton
74                        android:id="@+id/goto_gallery_button"
75                        android:background="?android:attr/selectableItemBackground"
76                        android:layout_width="match_parent"
77                        android:layout_height="match_parent"
78                        android:scaleType="center"
79                        android:src="@drawable/ic_gallery" />
80            </com.android.camera.ui.RotateLayout>
81            <View
82                    android:layout_width="match_parent"
83                    android:layout_margin="8dp"
84                    android:layout_height="1dp"
85                    android:background="#5affffff" />
86
87            <GridView android:id="@+id/share_list"
88                    style="@style/OneColumnGrid" />
89        </LinearLayout>
90    </FrameLayout>
91</FrameLayout>
92