1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2015 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
18    android:orientation="horizontal"
19    android:layout_height="match_parent"
20    android:layout_width="match_parent"
21    xmlns:tools="http://schemas.android.com/tools"
22    xmlns:custom="http://schemas.android.com/apk/res-auto"
23    xmlns:android="http://schemas.android.com/apk/res/android"
24    android:id="@+id/panels">
25
26    <com.android.example.cannylive.CameraView
27        android:layout_height="wrap_content"
28        android:layout_width="0dp"
29        android:id="@+id/preview"
30        custom:aspectRatio="1.333"
31        android:layout_weight="4"
32        android:layout_gravity="center_vertical" />
33
34
35
36        <LinearLayout
37            android:orientation="vertical"
38            android:layout_height="match_parent"
39            android:layout_width="0px"
40            android:layout_weight="1"
41            android:id="@+id/control_bar_contents">
42
43
44            <Button
45                android:layout_height="wrap_content"
46                android:layout_width="match_parent"
47                android:layout_gravity="center_horizontal"
48                android:onClick="changeEffectMode"
49                android:text="mode" />
50
51            <ImageButton
52                android:layout_height="wrap_content"
53                android:layout_width="match_parent"
54                android:layout_gravity="center_horizontal"
55                android:onClick="capture"
56                android:src="@drawable/ic_cam" />
57
58
59    </LinearLayout>
60
61</LinearLayout>
62