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