pano_review.xml revision 66629c698da1117db6d3fa0f7b2161c4d87e26e8
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18        android:id="@+id/pano_review_layout"
19        android:visibility="invisible"
20        android:orientation="horizontal"
21        android:layout_height="match_parent"
22        android:layout_width="match_parent">
23
24    <RelativeLayout style="@style/PanoViewHorizontalBar">
25        <com.android.camera.ui.RotateLayout
26                android:id="@+id/pano_review_saving_indication_layout"
27                android:layout_alignParentTop="true"
28                android:layout_centerHorizontal="true"
29                android:layout_marginTop="20dp"
30                android:layout_width="wrap_content"
31                android:layout_height="wrap_content">
32            <TextView android:id="@+id/pano_review_saving_indication"
33                    android:text="@string/pano_review_saving_indication_str"
34                    android:textAppearance="?android:textAppearanceMedium"
35                    android:layout_height="wrap_content"
36                    android:layout_width="wrap_content" />
37        </com.android.camera.ui.RotateLayout>
38
39        <com.android.camera.ui.RotateLayout
40                android:id="@+id/pano_saving_progress_bar_layout"
41                android:layout_centerInParent="true"
42                android:layout_height="wrap_content"
43                android:layout_width="wrap_content">
44            <com.android.camera.panorama.PanoProgressBar
45                    android:id="@+id/pano_saving_progress_bar"
46                    android:src="@drawable/ic_pan_progression"
47                    android:layout_centerInParent="true"
48                    android:layout_height="wrap_content"
49                    android:layout_width="wrap_content" />
50        </com.android.camera.ui.RotateLayout>
51    </RelativeLayout>
52
53    <ImageView android:id="@+id/pano_reviewarea"
54            android:rotation="90"
55            android:scaleType="fitCenter"
56            android:layout_height="match_parent"
57            android:layout_width="@dimen/pano_mosaic_surface_height" />
58
59    <LinearLayout android:id="@+id/pano_review_control"
60            style="@style/PanoViewHorizontalBar"
61            android:gravity="bottom"
62            android:orientation="vertical"
63            android:layout_alignParentBottom="true"
64            android:layout_height="match_parent">
65
66        <com.android.camera.ui.RotateLayout
67                android:id="@+id/pano_review_cancel_button_layout"
68                android:layout_gravity="bottom|center_horizontal"
69                android:layout_width="match_parent"
70                android:layout_height="match_parent">
71            <TextView android:id="@+id/pano_review_cancel_button"
72                    android:text="@string/review_cancel"
73                    android:background="@drawable/bg_pressed"
74                    android:gravity="center"
75                    android:clickable="true"
76                    android:onClick="onCancelButtonClicked"
77                    android:textSize="12sp"
78                    android:minWidth="@dimen/pano_review_button_width"
79                    android:layout_height="match_parent"
80                    android:layout_width="wrap_content" />
81        </com.android.camera.ui.RotateLayout>
82    </LinearLayout>
83</LinearLayout>
84