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="top|center"
29            android:background="@color/share_popup_blackout">
30        <com.android.camera.ui.RotateLayout
31                android:id="@+id/thumbnail_rotate_layout"
32                android:layout_width="wrap_content"
33                android:layout_height="wrap_content"
34                android:layout_gravity="center">
35            <!-- The size of the thumbnail is calculated in SharePopup.java -->
36            <FrameLayout
37                    android:layout_width="wrap_content"
38                    android:layout_height="wrap_content" >
39                <com.android.camera.ui.StackLayout
40                        android:layout_width="wrap_content"
41                        android:layout_height="wrap_content">
42                    <ImageView android:id="@+id/thumbnail"
43                            android:layout_width="wrap_content"
44                            android:layout_height="wrap_content"
45                            android:adjustViewBounds="true"
46                            android:scaleType="fitCenter"/>
47                    <View
48                            android:id="@+id/thumbnail_image_frame"
49                            android:layout_width="wrap_content"
50                            android:layout_height="wrap_content"
51                            android:padding="0dp"
52                            android:background="@drawable/border_last_picture"
53                            android:clickable="true"/>
54                </com.android.camera.ui.StackLayout>
55                <ImageView android:id="@+id/play"
56                        android:layout_width="wrap_content"
57                        android:layout_height="wrap_content"
58                        android:layout_gravity="center"
59                        android:scaleType="center"
60                        style="@style/ReviewPlayIcon"/>
61            </FrameLayout>
62        </com.android.camera.ui.RotateLayout>
63        <RelativeLayout
64                android:layout_width="match_parent"
65                android:layout_height="@dimen/share_item_height"
66                android:layout_gravity="bottom"
67                android:background="@color/share_icon_background">
68            <com.android.camera.ui.RotateLayout
69                    android:layout_alignParentRight="true"
70                    android:id="@+id/goto_gallery_button_rotate"
71                    android:layout_centerVertical="true"
72                    android:layout_width="wrap_content"
73                    android:layout_height="match_parent">
74                <ImageButton
75                        android:id="@+id/goto_gallery_button"
76                        android:background="?android:attr/selectableItemBackground"
77                        android:layout_gravity="center"
78                        android:layout_width="wrap_content"
79                        android:layout_height="wrap_content"
80                        android:src="@drawable/ic_gallery" />
81            </com.android.camera.ui.RotateLayout>
82            <View
83                    android:id="@+id/gallery_button_divider"
84                    android:layout_toLeftOf="@+id/goto_gallery_button_rotate"
85                    android:layout_height="match_parent"
86                    android:layout_margin="8dp"
87                    android:layout_width="1dp"
88                    android:background="#5affffff" />
89
90            <com.android.camera.ui.RightAlignedHorizontalScrollView android:id="@+id/share_list_container"
91                    android:layout_toLeftOf="@+id/gallery_button_divider"
92                    android:layout_height="match_parent"
93                    android:layout_width="wrap_content">
94                <com.android.camera.ui.OneRowGridView android:id="@+id/share_list"
95                        style="@style/OneRowGrid"/>
96            </com.android.camera.ui.RightAlignedHorizontalScrollView>
97        </RelativeLayout>
98    </FrameLayout>
99</FrameLayout>
100