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="@dimen/magnification_controls_size"
20    android:layout_alignParentBottom="true"
21    android:layout_alignParentEnd="true"
22    android:layout_height="@dimen/magnification_controls_size"
23    android:gravity="center">
24
25  <RelativeLayout
26      android:layout_width="wrap_content"
27      android:layout_height="wrap_content">
28
29    <ImageView
30        android:focusable="true"
31        android:id="@+id/controller"
32        android:layout_width="wrap_content"
33        android:layout_height="wrap_content"
34        android:src="@drawable/ic_control_magnification_grey" />
35
36    <View
37        android:id="@+id/left_control"
38        android:layout_width="@dimen/magnifier_left_right_controls_width"
39        android:layout_height="@dimen/magnifier_left_right_controls_height"
40        android:layout_alignLeft="@+id/controller"
41        android:layout_centerVertical="true" />
42
43    <View
44        android:id="@+id/up_control"
45        android:layout_width="@dimen/magnifier_up_down_controls_width"
46        android:layout_height="@dimen/magnifier_up_down_controls_height"
47        android:layout_alignTop="@+id/controller"
48        android:layout_centerHorizontal="true" />
49
50    <View
51        android:id="@+id/right_control"
52        android:layout_width="@dimen/magnifier_left_right_controls_width"
53        android:layout_height="@dimen/magnifier_left_right_controls_height"
54        android:layout_alignRight="@+id/controller"
55        android:layout_centerVertical="true" />
56
57    <View
58        android:id="@+id/down_control"
59        android:layout_width="@dimen/magnifier_up_down_controls_width"
60        android:layout_height="@dimen/magnifier_up_down_controls_height"
61        android:layout_alignBottom="@+id/controller"
62        android:layout_centerHorizontal="true" />
63  </RelativeLayout>
64
65</FrameLayout>
66