frame_layout_ltr.xml revision c46f7ffa9079f3ae8a5204e7519ed7a1250116d0
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/frame_layout_ltr" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:layoutDirection="ltr" 22 android:background="#FF000000"> 23 24 <FrameLayout 25 android:layout_width="100dp" 26 android:layout_height="100dp" 27 android:layout_gravity="right|center_vertical" 28 android:background="#FFFF0000"> 29 </FrameLayout> 30 31 <FrameLayout 32 android:layout_width="100dp" 33 android:layout_height="100dp" 34 android:layout_gravity="left|center_vertical" 35 android:background="#FF00FF00"> 36 </FrameLayout> 37 38 <FrameLayout 39 android:layout_width="100dp" 40 android:layout_height="100dp" 41 android:layout_gravity="top|center_horizontal" 42 android:background="#FF0000FF"> 43 </FrameLayout> 44 45 <FrameLayout 46 android:layout_width="100dp" 47 android:layout_height="100dp" 48 android:layout_gravity="bottom|center_horizontal" 49 android:background="#FF00FFFF"> 50 </FrameLayout> 51 52 <FrameLayout 53 android:layout_width="100dp" 54 android:layout_height="100dp" 55 android:layout_gravity="top|start" 56 android:background="#FFFFFFFF"> 57 </FrameLayout> 58 59 <FrameLayout 60 android:layout_width="100dp" 61 android:layout_height="100dp" 62 android:layout_gravity="top|end" 63 android:background="#FFFFFF00"> 64 </FrameLayout> 65 66 <FrameLayout 67 android:layout_width="100dp" 68 android:layout_height="100dp" 69 android:layout_gravity="bottom|start" 70 android:background="#FFFFFFFF"> 71 </FrameLayout> 72 73 <FrameLayout 74 android:layout_width="100dp" 75 android:layout_height="100dp" 76 android:layout_gravity="bottom|end" 77 android:background="#FFFFFF00"> 78 </FrameLayout> 79 80 <FrameLayout 81 android:layout_width="100dp" 82 android:layout_height="100dp" 83 android:layout_gravity="center_horizontal|center_vertical" 84 android:background="#FF888888"> 85 </FrameLayout> 86 87</FrameLayout> 88 89