pano_capture.xml revision 8b0e23544474480345937c0c0985429f61569761
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_capture_layout"
19        android:layout_width="match_parent"
20        android:layout_height="match_parent"
21        android:orientation="horizontal">
22
23    <RelativeLayout
24            android:layout_width="0dp"
25            android:layout_height="match_parent"
26            android:layout_weight="1">
27
28        <LinearLayout android:id="@+id/pano_capture_preview"
29                android:layout_width="match_parent"
30                android:layout_height="match_parent"
31                android:orientation="vertical">
32
33            <!-- The top bar with capture indication -->
34            <FrameLayout android:id="@+id/pano_capture_indicator_layout"
35                    style="@style/PanoViewHorizontalBar">
36
37                <TextView
38                        android:id="@+id/pano_capture_indicator"
39                        android:text="@string/pano_capture_indication"
40                        android:paddingTop="0dp"
41                        android:drawablePadding="5sp"
42                        android:drawableLeft="@drawable/ic_pan_recording_indicator"
43                        android:visibility="gone"
44                        android:layout_marginLeft="16dp"
45                        android:layout_marginTop="16dp"
46                        android:layout_gravity="top|left"
47                        android:layout_width="wrap_content"
48                        android:layout_height="wrap_content" />
49            </FrameLayout>
50
51            <RelativeLayout
52                    android:layout_gravity="center"
53                    android:layout_width="match_parent"
54                    android:layout_height="@dimen/pano_mosaic_surface_height">
55                <com.android.camera.panorama.MosaicRendererSurfaceView
56                        android:id="@+id/pano_renderer"
57                        android:layout_width="match_parent"
58                        android:layout_height="match_parent" />
59                <View
60                        android:id="@+id/pano_speed_indication_border"
61                        android:visibility="gone"
62                        android:background="@drawable/ic_pan_border_fast"
63                        android:layout_width="match_parent"
64                        android:layout_height="match_parent" />
65
66            </RelativeLayout>
67
68            <!-- The bottom bar with progress bar and direction indicators -->
69            <RelativeLayout
70                style="@style/PanoViewHorizontalBar">
71                <com.android.camera.panorama.PanoProgressBar
72                        android:id="@+id/pano_pan_progress_bar"
73                        android:visibility="gone"
74                        android:src="@drawable/ic_pan_progression"
75                        android:layout_centerInParent="true"
76                        android:layout_width="wrap_content"
77                        android:layout_height="wrap_content" />
78                <ImageView
79                        android:id="@+id/pano_pan_left_indicator"
80                        android:src="@drawable/pano_direction_left_indicator"
81                        android:visibility="gone"
82                        android:layout_marginRight="5dp"
83                        android:layout_toLeftOf="@id/pano_pan_progress_bar"
84                        android:layout_centerVertical="true"
85                        android:layout_width="wrap_content"
86                        android:layout_height="wrap_content" />
87
88                <ImageView
89                        android:id="@+id/pano_pan_right_indicator"
90                        android:src="@drawable/pano_direction_right_indicator"
91                        android:visibility="gone"
92                        android:layout_marginLeft="5dp"
93                        android:layout_toRightOf="@id/pano_pan_progress_bar"
94                        android:layout_centerVertical="true"
95                        android:layout_width="wrap_content"
96                        android:layout_height="wrap_content" />
97            </RelativeLayout>
98
99        </LinearLayout>
100
101        <!-- The hint for "Too fast" text view-->
102        <TextView android:id="@+id/pano_capture_too_fast_textview"
103                android:text="@string/pano_too_fast_prompt"
104                android:textAppearance="?android:textAppearanceMedium"
105                android:layout_height="@dimen/pano_capture_too_fast_text_height"
106                android:layout_width="wrap_content"
107                android:visibility="gone"
108                android:layout_centerInParent="true" />
109    </RelativeLayout>
110
111    <include layout="@layout/camera_control" />
112
113</LinearLayout>
114