share_popup.xml revision 7097299bb13ba2e8defca40e82bc7b28982a41cf
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/dim_background">
25    <FrameLayout android:id="@+id/share_view"
26            android:layout_width="wrap_content"
27            android:layout_height="match_parent"
28            android:layout_gravity="center"
29            android:background="@drawable/border_last_picture">
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            <ImageView android:id="@+id/thumbnail"
37                    android:layout_width="wrap_content"
38                    android:layout_height="wrap_content"
39                    android:adjustViewBounds="true"
40                    android:scaleType="fitCenter"/>
41        </com.android.camera.ui.RotateLayout>
42        <FrameLayout
43                android:layout_width="@dimen/share_item_width"
44                android:layout_height="match_parent"
45                android:layout_gravity="right"
46                android:background="@color/dim_background">
47            <ListView android:id="@+id/share_list"
48                    android:layout_width="match_parent"
49                    android:layout_height="wrap_content"
50                    android:orientation="vertical"
51                    android:choiceMode="singleChoice"
52                    style="@android:style/Widget.Holo.ListView" />
53        </FrameLayout>
54    </FrameLayout>
55</FrameLayout>
56