• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright (C) 2009 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17
18<com.android.videoeditor.widgets.EditorRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/editor_project_view"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <include layout="@layout/timeline_layout"/>
24
25    <FrameLayout android:id="@+id/video_frame_view"
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content"
28        android:layout_margin="7dip"
29        android:layout_centerHorizontal="true"
30        android:padding="4dip"
31        android:background="@drawable/surface_background">
32        <com.android.videoeditor.widgets.PreviewSurfaceView android:id="@+id/video_view"
33            android:layout_width="0dip"
34            android:layout_height="300dip"/>
35        <ImageView android:id="@+id/overlay_layer"
36            android:layout_width="0dip"
37            android:layout_height="300dip"/>
38    </FrameLayout>
39
40    <RelativeLayout
41        android:layout_width="250dip"
42        android:layout_height="250dip"
43        android:layout_alignParentLeft="true"
44        android:layout_below="@id/video_frame_view"
45        android:layout_marginTop="21dip"
46        android:layout_marginLeft="-42dip"
47        android:background="@drawable/buttons_background_zoom">
48        <com.android.videoeditor.widgets.ZoomControl android:id="@+id/editor_zoom"
49            android:layout_width="match_parent"
50            android:layout_height="match_parent"
51            android:clickable="true"/>
52    </RelativeLayout>
53
54    <RelativeLayout android:id="@+id/playback_buttons"
55        android:layout_width="250dip"
56        android:layout_height="250dip"
57        android:layout_below="@id/video_frame_view"
58        android:layout_alignParentRight="true"
59        android:layout_marginTop="21dip"
60        android:layout_marginRight="-42dip"
61        android:background="@drawable/buttons_background">
62         <ImageButton android:id="@+id/editor_prev"
63            android:onClick="onClickHandler"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_alignParentTop="true"
67            android:layout_marginTop="11dip"
68            android:layout_marginLeft="93dip"
69            android:src="@drawable/btn_playback_ic_prev"
70            android:background="@drawable/background_selector"/>
71        <ImageButton android:id="@+id/editor_rewind"
72            android:onClick="onClickHandler"
73            android:layout_width="wrap_content"
74            android:layout_height="wrap_content"
75            android:layout_marginTop="90dip"
76            android:layout_marginLeft="14dip"
77            android:src="@drawable/btn_playback_ic_rev"
78            android:background="@drawable/background_selector"/>
79        <ImageButton android:id="@+id/editor_play"
80            android:onClick="onClickHandler"
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:layout_centerHorizontal="true"
84            android:layout_marginLeft="3dip"
85            android:layout_marginTop="1dip"
86            android:layout_below="@id/editor_prev"
87            android:src="@drawable/btn_playback_ic_play"
88            android:background="@drawable/background_selector"/>
89        <ImageButton android:id="@+id/editor_next"
90            android:onClick="onClickHandler"
91            android:layout_width="wrap_content"
92            android:layout_height="wrap_content"
93            android:layout_alignParentBottom="true"
94            android:layout_marginLeft="93dip"
95            android:layout_marginBottom="11dip"
96            android:src="@drawable/btn_playback_ic_next"
97            android:background="@drawable/background_selector"/>
98    </RelativeLayout>
99
100    <TextView android:id="@+id/editor_time"
101        android:layout_width="wrap_content"
102        android:layout_height="wrap_content"
103        android:layout_marginRight="28dip"
104        android:layout_marginTop="7dip"
105        android:layout_below="@id/playback_buttons"
106        android:layout_alignParentRight="true"
107        android:singleLine="true"
108        android:text="@string/editor_zero_time_stamp"
109        android:textSize="17sp"
110        android:textStyle="bold"
111        android:textColor="#ffcf8104"/>
112
113</com.android.videoeditor.widgets.EditorRelativeLayout>
114