preview_frame_video.xml revision 30f0481931beed547656f2c7bc6290ecc9b01ac3
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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<com.android.camera.PreviewFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18        android:id="@+id/frame_layout"
19        android:layout_width="match_parent"
20        android:layout_height="match_parent"
21        android:layout_weight="1"
22        android:layout_marginLeft="2dip">
23    <RelativeLayout android:id="@+id/frame"
24            android:layout_width="match_parent"
25            android:layout_height="match_parent">
26        <SurfaceView android:id="@+id/camera_preview"
27                android:layout_width="match_parent"
28                android:layout_height="match_parent"/>
29        <!-- Note: In this TextView the paddingRight="2"
30             attribute is required because otherwise the
31             text's drop shadow will be clipped. -->
32        <TextView android:id="@+id/recording_time"
33                style="@style/RecordingTime"
34                android:drawablePadding="8dp"
35                android:drawableLeft="@drawable/ic_recording_indicator"
36                android:layout_width="300dp"
37                android:layout_height="wrap_content"
38                android:layout_gravity="left|bottom"
39                android:layout_marginBottom="13dp"
40                android:layout_marginLeft="17dp"
41                android:paddingRight="2dp"
42                android:visibility="gone"/>
43        <ImageButton android:id="@+id/btn_play"
44                style="@style/ReviewPlayIcon"
45                android:src="@drawable/btn_ic_review_play"
46                android:onClick="onPlayButtonClicked"/>
47        <ImageView android:id="@+id/review_image"
48                android:layout_width="match_parent"
49                android:layout_height="match_parent"
50                android:visibility="gone"
51                android:background="@android:color/black"/>
52        <include layout="@layout/indicator_bar"/>
53        <TextView android:id="@+id/bg_replace_message"
54                  android:layout_width="300dp"
55                  android:layout_height="wrap_content"
56                  android:layout_centerInParent="true"
57                  android:padding="32dp"
58                  android:layout_margin="24dp"
59                  android:textAppearance="?android:attr/textAppearanceMedium"
60                  android:background="@drawable/bg_text_on_preview"
61                  android:visibility="gone"
62                  android:text="@string/bg_replacement_message" />
63    </RelativeLayout>
64    <!-- Border for video snapshot. -->
65    <View android:id="@+id/preview_border"
66            android:layout_width="match_parent"
67            android:layout_height="match_parent"
68            android:visibility="gone"/>
69</com.android.camera.PreviewFrameLayout>
70