1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2017 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/container"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <LinearLayout
25        android:id="@+id/controls_1"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:layout_margin="16dp"
29        android:orientation="horizontal">
30        <Button
31            android:id="@+id/fit_xy"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:text="@string/fit_xy"/>
35        <Button
36            android:id="@+id/center"
37            android:layout_width="wrap_content"
38            android:layout_height="wrap_content"
39            android:text="@string/center"/>
40        <Button
41            android:id="@+id/center_crop"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:text="@string/center_crop"/>
45    </LinearLayout>
46
47    <LinearLayout
48        android:id="@+id/controls_2"
49        android:layout_width="match_parent"
50        android:layout_height="wrap_content"
51        android:layout_marginBottom="16dp"
52        android:layout_marginLeft="16dp"
53        android:layout_marginRight="16dp"
54        android:orientation="horizontal">
55        <Button
56            android:id="@+id/fit_start"
57            android:layout_width="wrap_content"
58            android:layout_height="wrap_content"
59            android:text="@string/fit_start"/>
60        <Button
61            android:id="@+id/fit_end"
62            android:layout_width="wrap_content"
63            android:layout_height="wrap_content"
64            android:text="@string/fit_end"/>
65        <Button
66            android:id="@+id/matrix"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:text="@string/matrix"/>
70    </LinearLayout>
71
72    <ImageView
73        android:id="@+id/photo"
74        android:layout_width="256dp"
75        android:layout_height="256dp"
76        android:background="#eee"
77        android:contentDescription="@string/photo"
78        android:scaleType="center"
79        android:src="@drawable/photo"/>
80
81</LinearLayout>
82