• 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    <RelativeLayout
24        android:layout_width="250dip"
25        android:layout_height="250dip"
26        android:layout_alignParentLeft="true"
27        android:layout_marginTop="33dip"
28        android:layout_marginLeft="-50dip"
29        android:background="@drawable/buttons_background_zoom">
30        <com.android.videoeditor.widgets.ZoomControl android:id="@+id/editor_zoom"
31            android:layout_width="match_parent"
32            android:layout_height="match_parent"
33            android:clickable="true"/>
34    </RelativeLayout>
35    <RelativeLayout android:id="@+id/playback_buttons"
36        android:layout_width="250dip"
37        android:layout_height="250dip"
38        android:layout_alignParentRight="true"
39        android:layout_marginTop="33dip"
40        android:layout_marginRight="-50dip"
41        android:background="@drawable/buttons_background">
42         <ImageButton android:id="@+id/editor_prev"
43            android:onClick="onClickHandler"
44            android:layout_width="wrap_content"
45            android:layout_height="wrap_content"
46            android:layout_alignParentTop="true"
47            android:layout_marginTop="8dip"
48            android:layout_marginLeft="90dip"
49            android:src="@drawable/btn_playback_ic_prev"
50            android:background="@drawable/background_selector"/>
51        <ImageButton android:id="@+id/editor_rewind"
52            android:onClick="onClickHandler"
53            android:layout_width="wrap_content"
54            android:layout_height="wrap_content"
55            android:layout_marginTop="90dip"
56            android:layout_marginLeft="5dip"
57            android:src="@drawable/btn_playback_ic_rev"
58            android:background="@drawable/background_selector"/>
59        <ImageButton android:id="@+id/editor_play"
60            android:onClick="onClickHandler"
61            android:layout_width="wrap_content"
62            android:layout_height="wrap_content"
63            android:layout_centerHorizontal="true"
64            android:layout_marginTop="4dip"
65            android:layout_below="@id/editor_prev"
66            android:src="@drawable/btn_playback_ic_play"
67            android:background="@drawable/background_selector"/>
68        <ImageButton android:id="@+id/editor_next"
69            android:onClick="onClickHandler"
70            android:layout_width="wrap_content"
71            android:layout_height="wrap_content"
72            android:layout_alignParentBottom="true"
73            android:layout_marginLeft="90dip"
74            android:layout_marginBottom="8dip"
75            android:src="@drawable/btn_playback_ic_next"
76            android:background="@drawable/background_selector"/>
77    </RelativeLayout>
78
79    <TextView android:id="@+id/editor_time"
80        android:layout_width="wrap_content"
81        android:layout_height="wrap_content"
82        android:layout_marginRight="40dip"
83        android:layout_below="@id/playback_buttons"
84        android:layout_alignParentRight="true"
85        android:layout_marginTop="-10dip"
86        android:singleLine="true"
87        android:text="@string/editor_zero_time_stamp"
88        android:textSize="16sp"
89        android:textStyle="bold"
90        android:textColor="@color/orange"/>
91
92    <include layout="@layout/timeline_layout"/>
93
94    <FrameLayout android:id="@+id/video_frame_view"
95        android:layout_width="wrap_content"
96        android:layout_height="wrap_content"
97        android:layout_margin="7dip"
98        android:layout_centerHorizontal="true"
99        android:layout_alignParentTop="true"
100        android:padding="3dip"
101        android:background="@drawable/surface_background">
102        <com.android.videoeditor.widgets.PreviewSurfaceView android:id="@+id/video_view"
103            android:layout_width="0dip"
104            android:layout_height="270dip"/>
105        <ImageView android:id="@+id/overlay_layer"
106            android:layout_width="0dip"
107            android:layout_height="270dip"/>
108    </FrameLayout>
109</com.android.videoeditor.widgets.EditorRelativeLayout>
110