relative_layout_rtl.xml revision 7af05226b901f2b623ca5b3ca23d8586941ef54b
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18        android:id="@+id/relative_layout_rtl"
19        android:layout_width="fill_parent"
20        android:layout_height="fill_parent">
21
22    <FrameLayout android:layout_width="match_parent"
23                 android:layout_height="match_parent"
24                 android:layoutDirection="rtl"
25                 android:background="#FF000000">
26
27        <RelativeLayout
28                android:layout_width="100dp"
29                android:layout_height="100dp"
30                android:layout_gravity="right|center_vertical"
31                android:background="#FFFF0000">
32        </RelativeLayout>
33
34        <RelativeLayout
35                android:layout_width="100dp"
36                android:layout_height="100dp"
37                android:layout_gravity="left|center_vertical"
38                android:background="#FF00FF00">
39        </RelativeLayout>
40
41        <RelativeLayout
42                android:layout_width="100dp"
43                android:layout_height="100dp"
44                android:layout_gravity="top|center_horizontal"
45                android:background="#FF0000FF">
46        </RelativeLayout>
47
48        <RelativeLayout
49                android:layout_width="100dp"
50                android:layout_height="100dp"
51                android:layout_gravity="bottom|center_horizontal"
52                android:background="#FF00FFFF">
53        </RelativeLayout>
54
55        <RelativeLayout
56                android:layout_width="100dp"
57                android:layout_height="100dp"
58                android:layout_gravity="top|start"
59                android:background="#FFFFFFFF">
60        </RelativeLayout>
61
62        <RelativeLayout
63                android:layout_width="100dp"
64                android:layout_height="100dp"
65                android:layout_gravity="top|end"
66                android:background="#FFFFFF00">
67        </RelativeLayout>
68
69        <RelativeLayout
70                android:layout_width="100dp"
71                android:layout_height="100dp"
72                android:layout_gravity="bottom|start"
73                android:background="#FFFFFFFF">
74        </RelativeLayout>
75
76        <RelativeLayout
77                android:layout_width="100dp"
78                android:layout_height="100dp"
79                android:layout_gravity="bottom|end"
80                android:background="#FFFFFF00">
81        </RelativeLayout>
82
83        <RelativeLayout
84                android:layout_width="100dp"
85                android:layout_height="100dp"
86                android:layout_gravity="center_horizontal|center_vertical"
87                android:background="#FF888888">
88        </RelativeLayout>
89    
90    </FrameLayout>
91
92</FrameLayout>