pano_capture.xml revision 8df38bbe67338a1f5dc58996bd8866f4c1fe264d
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            <FrameLayout android:id="@+id/pano_capture_indicator_layout"
34                    style="@style/PanoViewHorizontalBar">
35
36                <TextView
37                        android:id="@+id/pano_capture_indicator"
38                        android:text="@string/pano_capture_indication"
39                        android:paddingTop="0dp"
40                        android:drawablePadding="5sp"
41                        android:drawableLeft="@drawable/ic_pan_recording_indicator"
42                        android:visibility="gone"
43                        android:layout_marginLeft="16dp"
44                        android:layout_marginTop="16dp"
45                        android:layout_gravity="top|left"
46                        android:layout_width="wrap_content"
47                        android:layout_height="wrap_content" />
48            </FrameLayout>
49
50            <com.android.camera.panorama.MosaicRendererSurfaceView
51                    android:id="@+id/pano_renderer"
52                    android:layout_gravity="center"
53                    android:layout_width="match_parent"
54                    android:layout_height="@dimen/pano_mosaic_surface_height" />
55
56            <FrameLayout
57                style="@style/PanoViewHorizontalBar">
58                <com.android.camera.panorama.PanoProgressBar
59                        android:id="@+id/pano_pan_progress_bar"
60                        android:visibility="gone"
61                        android:src="@drawable/ic_pan_progression"
62                        android:layout_gravity="center"
63                        android:layout_width="wrap_content"
64                        android:layout_height="wrap_content" />
65            </FrameLayout>
66
67        </LinearLayout>
68
69        <!-- The hint for "Too fast" text view-->
70        <TextView android:id="@+id/pano_capture_too_fast_textview"
71                android:text="@string/pano_too_fast_prompt"
72                android:textAppearance="?android:textAppearanceMedium"
73                android:layout_height="@dimen/pano_capture_too_fast_text_height"
74                android:layout_width="wrap_content"
75                android:visibility="gone"
76                android:layout_centerInParent="true" />
77    </RelativeLayout>
78
79    <include layout="@layout/camera_control" />
80
81</LinearLayout>
82