pano_capture.xml revision 6108e0ed3a6b03deed2a8586d98607a6756637b1
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            <com.android.camera.panorama.MosaicRendererSurfaceView
52                    android:id="@+id/pano_renderer"
53                    android:layout_gravity="center"
54                    android:layout_width="match_parent"
55                    android:layout_height="@dimen/pano_mosaic_surface_height" />
56
57            <!-- The bottom bar with progress bar and direction indicators -->
58            <RelativeLayout
59                style="@style/PanoViewHorizontalBar">
60                <com.android.camera.panorama.PanoProgressBar
61                        android:id="@+id/pano_pan_progress_bar"
62                        android:visibility="gone"
63                        android:src="@drawable/ic_pan_progression"
64                        android:layout_centerInParent="true"
65                        android:layout_width="wrap_content"
66                        android:layout_height="wrap_content" />
67                <ImageView
68                        android:id="@+id/pano_pan_left_indicator"
69                        android:src="@drawable/ic_pan_left_indicator"
70                        android:visibility="gone"
71                        android:layout_marginRight="5dp"
72                        android:layout_toLeftOf="@id/pano_pan_progress_bar"
73                        android:layout_centerVertical="true"
74                        android:layout_width="wrap_content"
75                        android:layout_height="wrap_content" />
76
77                <ImageView
78                        android:id="@+id/pano_pan_right_indicator"
79                        android:src="@drawable/ic_pan_right_indicator"
80                        android:visibility="gone"
81                        android:layout_marginLeft="5dp"
82                        android:layout_toRightOf="@id/pano_pan_progress_bar"
83                        android:layout_centerVertical="true"
84                        android:layout_width="wrap_content"
85                        android:layout_height="wrap_content" />
86            </RelativeLayout>
87
88        </LinearLayout>
89
90        <!-- The hint for "Too fast" text view-->
91        <TextView android:id="@+id/pano_capture_too_fast_textview"
92                android:text="@string/pano_too_fast_prompt"
93                android:textAppearance="?android:textAppearanceMedium"
94                android:layout_height="@dimen/pano_capture_too_fast_text_height"
95                android:layout_width="wrap_content"
96                android:visibility="gone"
97                android:layout_centerInParent="true" />
98    </RelativeLayout>
99
100    <include layout="@layout/camera_control" />
101
102</LinearLayout>
103