• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/view_padding_mixed"
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:background="#FFFFFFFF">
25
26        <FrameLayout
27                android:layout_width="300dp"
28                android:layout_height="300dp"
29                android:layout_gravity="top|left"
30                android:background="#FF888888"
31                android:paddingTop="20dip"
32                android:paddingLeft="40dip"
33                android:paddingStart="5dip"
34                android:paddingBottom="30dip"
35                android:paddingRight="50dip"
36                android:layoutDirection="ltr">
37
38            <FrameLayout
39                    android:layout_width="100dp"
40                    android:layout_height="100dp"
41                    android:layout_gravity="top|left"
42                    android:background="#FF0000FF">
43            </FrameLayout>
44
45            <FrameLayout
46                    android:layout_width="100dp"
47                    android:layout_height="100dp"
48                    android:layout_gravity="bottom|right"
49                    android:background="#FF00FF00">
50            </FrameLayout>
51        </FrameLayout>
52
53        <FrameLayout
54                android:layout_width="300dp"
55                android:layout_height="300dp"
56                android:layout_gravity="top|center_horizontal"
57                android:background="#FF888888"
58                android:paddingTop="20dip"
59                android:paddingLeft="40dip"
60                android:paddingEnd="5dip"
61                android:paddingBottom="30dip"
62                android:paddingRight="50dip"
63                android:layoutDirection="ltr">
64
65            <FrameLayout
66                    android:layout_width="100dp"
67                    android:layout_height="100dp"
68                    android:layout_gravity="top|left"
69                    android:background="#FF0000FF">
70            </FrameLayout>
71
72            <FrameLayout
73                    android:layout_width="100dp"
74                    android:layout_height="100dp"
75                    android:layout_gravity="bottom|right"
76                    android:background="#FF00FF00">
77            </FrameLayout>
78        </FrameLayout>
79
80        <FrameLayout
81                android:layout_width="300dp"
82                android:layout_height="300dp"
83                android:layout_gravity="top|right"
84                android:background="@*android:drawable/dialog_full_holo_dark"
85                android:layoutDirection="ltr">
86
87            <FrameLayout
88                    android:layout_width="100dp"
89                    android:layout_height="100dp"
90                    android:layout_gravity="top|left"
91                    android:background="#FF0000FF">
92            </FrameLayout>
93
94            <FrameLayout
95                    android:layout_width="100dp"
96                    android:layout_height="100dp"
97                    android:layout_gravity="bottom|right"
98                    android:background="#FFFFFFFF">
99            </FrameLayout>
100        </FrameLayout>
101
102        <FrameLayout
103                android:layout_width="300dp"
104                android:layout_height="300dp"
105                android:layout_gravity="bottom|left"
106                android:background="#FF888888"
107                android:paddingTop="20dip"
108                android:paddingLeft="40dip"
109                android:paddingStart="5dip"
110                android:paddingBottom="30dip"
111                android:paddingRight="50dip"
112                android:layoutDirection="rtl">
113
114            <FrameLayout
115                    android:layout_width="100dp"
116                    android:layout_height="100dp"
117                    android:layout_gravity="top|left"
118                    android:background="#FF0000FF">
119            </FrameLayout>
120
121            <FrameLayout
122                    android:layout_width="100dp"
123                    android:layout_height="100dp"
124                    android:layout_gravity="bottom|right"
125                    android:background="#FF00FF00">
126            </FrameLayout>
127        </FrameLayout>
128
129        <FrameLayout
130                android:layout_width="300dp"
131                android:layout_height="300dp"
132                android:layout_gravity="bottom|center_horizontal"
133                android:background="#FF888888"
134                android:paddingTop="20dip"
135                android:paddingLeft="40dip"
136                android:paddingEnd="5dip"
137                android:paddingBottom="30dip"
138                android:paddingRight="50dip"
139                android:layoutDirection="rtl">
140
141            <FrameLayout
142                    android:layout_width="100dp"
143                    android:layout_height="100dp"
144                    android:layout_gravity="top|left"
145                    android:background="#FF0000FF">
146            </FrameLayout>
147
148            <FrameLayout
149                    android:layout_width="100dp"
150                    android:layout_height="100dp"
151                    android:layout_gravity="bottom|right"
152                    android:background="#FF00FF00">
153            </FrameLayout>
154        </FrameLayout>
155
156        <FrameLayout
157                android:layout_width="300dp"
158                android:layout_height="300dp"
159                android:layout_gravity="bottom|right"
160                android:background="@*android:drawable/menu_background_fill_parent_width"
161                android:layoutDirection="ltr">
162
163            <FrameLayout
164                    android:layout_width="100dp"
165                    android:layout_height="100dp"
166                    android:layout_gravity="top|left"
167                    android:background="#FF0000FF">
168            </FrameLayout>
169
170            <FrameLayout
171                    android:layout_width="100dp"
172                    android:layout_height="100dp"
173                    android:layout_gravity="bottom|right"
174                    android:background="#FFFFFFFF">
175            </FrameLayout>
176        </FrameLayout>
177
178    </FrameLayout>
179
180</FrameLayout>
181