1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 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 <ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <RelativeLayout 23 android:id="@+id/main_container" 24 android:layout_width="10000dp" 25 android:layout_height="10000dp"> 26 27 <View 28 android:id="@+id/anchor_upper_left" 29 android:layout_width="10dp" 30 android:layout_height="10dp" 31 android:layout_alignParentLeft="true" 32 android:layout_alignParentTop="true" 33 android:background="#f00" /> 34 35 <View 36 android:id="@+id/anchor_upper" 37 android:layout_width="10dp" 38 android:layout_height="10dp" 39 android:layout_centerHorizontal="true" 40 android:layout_alignParentTop="true" 41 android:background="#f00" /> 42 43 <View 44 android:id="@+id/anchor_upper_right" 45 android:layout_width="10dp" 46 android:layout_height="10dp" 47 android:layout_alignParentRight="true" 48 android:layout_alignParentTop="true" 49 android:background="#f00" /> 50 51 <View 52 android:id="@+id/anchor_middle_left" 53 android:layout_width="10dp" 54 android:layout_height="10dp" 55 android:layout_alignParentLeft="true" 56 android:layout_centerVertical="true" 57 android:background="#0f0" /> 58 59 <View 60 android:id="@+id/anchor_middle" 61 android:layout_width="10dp" 62 android:layout_height="10dp" 63 android:layout_centerHorizontal="true" 64 android:layout_centerVertical="true" 65 android:background="#0f0" /> 66 67 <View 68 android:id="@+id/anchor_middle_right" 69 android:layout_width="10dp" 70 android:layout_height="10dp" 71 android:layout_alignParentRight="true" 72 android:layout_centerVertical="true" 73 android:background="#0f0" /> 74 75 <View 76 android:id="@+id/anchor_lower_left" 77 android:layout_width="10dp" 78 android:layout_height="10dp" 79 android:layout_alignParentLeft="true" 80 android:layout_alignParentBottom="true" 81 android:background="#00f" /> 82 83 <View 84 android:id="@+id/anchor_lower" 85 android:layout_width="10dp" 86 android:layout_height="10dp" 87 android:layout_centerHorizontal="true" 88 android:layout_alignParentBottom="true" 89 android:background="#00f" /> 90 91 <View 92 android:id="@+id/anchor_lower_right" 93 android:layout_width="10dp" 94 android:layout_height="10dp" 95 android:layout_alignParentRight="true" 96 android:layout_alignParentBottom="true" 97 android:background="#00f" /> 98 99 </RelativeLayout> 100 101 </ScrollView>