1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2019 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
19             android:layout_width="wrap_content"
20             android:layout_height="wrap_content"
21             android:layout_margin="20dp"
22             android:gravity="center">
23
24    <RelativeLayout
25        android:id="@+id/arrows"
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content">
28
29        <ImageButton
30            android:id="@+id/up_arrow"
31            android:layout_width="wrap_content"
32            android:layout_height="wrap_content"
33            android:layout_toEndOf="@+id/right_arrow"
34            android:background="@android:color/holo_green_light"
35            android:padding="10dp"
36            android:src="@android:drawable/arrow_up_float" />
37
38        <ImageButton
39            android:id="@+id/down_arrow"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:layout_below="@+id/up_arrow"
43            android:layout_marginTop="80dp"
44            android:layout_toEndOf="@+id/right_arrow"
45            android:background="@android:color/holo_green_light"
46            android:padding="10dp"
47            android:src="@android:drawable/arrow_down_float" />
48
49        <ImageButton
50            android:id="@+id/right_arrow"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:layout_alignTop="@+id/up_arrow"
54            android:layout_alignBottom="@+id/down_arrow"
55            android:layout_marginTop="55dp"
56            android:layout_marginEnd="15dp"
57            android:layout_marginBottom="55dp"
58            android:background="@android:color/holo_green_light"
59            android:paddingLeft="10dp"
60            android:paddingRight="10dp"
61            android:rotation="90"
62            android:src="@android:drawable/arrow_down_float" />
63
64        <ImageButton
65            android:id="@+id/left_arrow"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:layout_alignTop="@+id/up_arrow"
69            android:layout_alignBottom="@+id/down_arrow"
70            android:layout_marginStart="15dp"
71            android:layout_marginTop="55dp"
72            android:layout_marginBottom="55dp"
73            android:layout_toEndOf="@+id/down_arrow"
74            android:background="@android:color/holo_green_light"
75            android:paddingLeft="10dp"
76            android:paddingRight="10dp"
77            android:rotation="-90"
78            android:src="@android:drawable/arrow_down_float" />
79    </RelativeLayout>
80
81    <RelativeLayout
82
83        android:layout_gravity="center"
84        android:layout_width="wrap_content"
85        android:layout_height="wrap_content">
86
87        <Button
88            android:id="@+id/zoom_in_button"
89            android:layout_width="40dp"
90            android:layout_marginBottom="-8dp"
91            android:layout_height="40dp"
92            android:text="+" />
93
94        <Button
95            android:layout_below="@+id/zoom_in_button"
96            android:id="@+id/zoom_out_button"
97            android:layout_width="40dp"
98            android:layout_height="40dp"
99            android:text="-" />
100    </RelativeLayout>
101</FrameLayout>