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