Home | History | Annotate | Download | only in layout
      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_group_margin_mixed"
     19              android:layout_width="fill_parent"
     20              android:layout_height="fill_parent"
     21              android:background="#FFFFFFFF">
     22 
     23     <LinearLayout android:orientation="vertical"
     24                   android:layout_width="match_parent"
     25                   android:layout_height="wrap_content">
     26 
     27         <LinearLayout android:orientation="vertical"
     28                       android:layout_width="match_parent"
     29                       android:layout_height="wrap_content"
     30                       android:layoutDirection="ltr">
     31 
     32             <LinearLayout android:orientation="horizontal"
     33                           android:layout_width="match_parent"
     34                           android:layout_height="wrap_content"
     35                           android:background="#FF0000FF">
     36 
     37                 <FrameLayout
     38                         android:layout_width="80dp"
     39                         android:layout_height="80dp"
     40                         android:layout_marginLeft="0dip"
     41                         android:layout_marginRight="0dip"
     42                         android:layout_marginTop="0dip"
     43                         android:layout_marginBottom="0dip"
     44                         android:background="#FFFF0000">
     45                 </FrameLayout>
     46 
     47                 <FrameLayout
     48                         android:layout_width="80dp"
     49                         android:layout_height="80dp"
     50                         android:background="#FF00FF00">
     51                 </FrameLayout>
     52             </LinearLayout>
     53 
     54             <LinearLayout android:orientation="horizontal"
     55                           android:layout_width="match_parent"
     56                           android:layout_height="wrap_content"
     57                           android:background="#FF000000">
     58 
     59                 <FrameLayout
     60                         android:layout_width="80dp"
     61                         android:layout_height="80dp"
     62                         android:layout_marginLeft="10dip"
     63                         android:layout_marginStart="5dip"
     64                         android:layout_marginRight="20dip"
     65                         android:layout_marginEnd="5dip"
     66                         android:layout_marginTop="5dip"
     67                         android:layout_marginBottom="5dip"
     68                         android:background="#FFFF0000">
     69                 </FrameLayout>
     70 
     71                 <FrameLayout
     72                         android:layout_width="80dp"
     73                         android:layout_height="80dp"
     74                         android:background="#FF00FF00">
     75                 </FrameLayout>
     76             </LinearLayout>
     77 
     78         </LinearLayout>
     79 
     80         <LinearLayout android:orientation="vertical"
     81                       android:layout_width="match_parent"
     82                       android:layout_height="wrap_content"
     83                       android:layoutDirection="rtl">
     84 
     85             <LinearLayout android:orientation="horizontal"
     86                           android:layout_width="match_parent"
     87                           android:layout_height="wrap_content"
     88                           android:background="#FF0000FF">
     89 
     90                 <FrameLayout
     91                         android:layout_width="80dp"
     92                         android:layout_height="80dp"
     93                         android:layout_marginLeft="0dip"
     94                         android:layout_marginRight="0dip"
     95                         android:layout_marginTop="0dip"
     96                         android:layout_marginBottom="0dip"
     97                         android:background="#FFFF0000">
     98                 </FrameLayout>
     99 
    100                 <FrameLayout
    101                         android:layout_width="80dp"
    102                         android:layout_height="80dp"
    103                         android:background="#FF00FF00">
    104                 </FrameLayout>
    105             </LinearLayout>
    106 
    107             <LinearLayout android:orientation="horizontal"
    108                           android:layout_width="match_parent"
    109                           android:layout_height="wrap_content"
    110                           android:background="#FF000000">
    111 
    112                 <FrameLayout
    113                         android:layout_width="80dp"
    114                         android:layout_height="80dp"
    115                         android:layout_marginLeft="10dip"
    116                         android:layout_marginStart="5dip"
    117                         android:layout_marginRight="20dip"
    118                         android:layout_marginEnd="5dip"
    119                         android:layout_marginTop="5dip"
    120                         android:layout_marginBottom="5dip"
    121                         android:background="#FFFF0000">
    122                 </FrameLayout>
    123 
    124                 <FrameLayout
    125                         android:layout_width="80dp"
    126                         android:layout_height="80dp"
    127                         android:background="#FF00FF00">
    128                 </FrameLayout>
    129             </LinearLayout>
    130 
    131         </LinearLayout>
    132 
    133         <LinearLayout android:orientation="vertical"
    134                       android:layout_width="match_parent"
    135                       android:layout_height="wrap_content"
    136                       android:layoutDirection="inherit">
    137 
    138             <LinearLayout android:orientation="horizontal"
    139                           android:layout_width="match_parent"
    140                           android:layout_height="wrap_content"
    141                           android:background="#FF0000FF">
    142 
    143                 <FrameLayout
    144                         android:layout_width="80dp"
    145                         android:layout_height="80dp"
    146                         android:layout_marginLeft="0dip"
    147                         android:layout_marginRight="0dip"
    148                         android:layout_marginTop="0dip"
    149                         android:layout_marginBottom="0dip"
    150                         android:background="#FFFF0000">
    151                 </FrameLayout>
    152 
    153                 <FrameLayout
    154                         android:layout_width="80dp"
    155                         android:layout_height="80dp"
    156                         android:background="#FF00FF00">
    157                 </FrameLayout>
    158             </LinearLayout>
    159 
    160             <LinearLayout android:orientation="horizontal"
    161                           android:layout_width="match_parent"
    162                           android:layout_height="wrap_content"
    163                           android:background="#FF000000">
    164 
    165                 <FrameLayout
    166                         android:layout_width="80dp"
    167                         android:layout_height="80dp"
    168                         android:layout_marginLeft="10dip"
    169                         android:layout_marginStart="5dip"
    170                         android:layout_marginRight="20dip"
    171                         android:layout_marginEnd="5dip"
    172                         android:layout_marginTop="5dip"
    173                         android:layout_marginBottom="5dip"
    174                         android:background="#FFFF0000">
    175                 </FrameLayout>
    176 
    177                 <FrameLayout
    178                         android:layout_width="80dp"
    179                         android:layout_height="80dp"
    180                         android:background="#FF00FF00">
    181                 </FrameLayout>
    182             </LinearLayout>
    183 
    184         </LinearLayout>
    185 
    186         <LinearLayout android:orientation="vertical"
    187                       android:layout_width="match_parent"
    188                       android:layout_height="wrap_content"
    189                       android:layoutDirection="locale">
    190 
    191             <LinearLayout android:orientation="horizontal"
    192                           android:layout_width="match_parent"
    193                           android:layout_height="wrap_content"
    194                           android:background="#FF0000FF">
    195 
    196                 <FrameLayout
    197                         android:layout_width="80dp"
    198                         android:layout_height="80dp"
    199                         android:layout_marginLeft="0dip"
    200                         android:layout_marginRight="0dip"
    201                         android:layout_marginTop="0dip"
    202                         android:layout_marginBottom="0dip"
    203                         android:background="#FFFF0000">
    204                 </FrameLayout>
    205 
    206                 <FrameLayout
    207                         android:layout_width="80dp"
    208                         android:layout_height="80dp"
    209                         android:background="#FF00FF00">
    210                 </FrameLayout>
    211             </LinearLayout>
    212 
    213             <LinearLayout android:orientation="horizontal"
    214                           android:layout_width="match_parent"
    215                           android:layout_height="wrap_content"
    216                           android:background="#FF000000">
    217 
    218                 <FrameLayout
    219                         android:layout_width="80dp"
    220                         android:layout_height="80dp"
    221                         android:layout_marginLeft="10dip"
    222                         android:layout_marginStart="5dip"
    223                         android:layout_marginRight="20dip"
    224                         android:layout_marginEnd="5dip"
    225                         android:layout_marginTop="5dip"
    226                         android:layout_marginBottom="5dip"
    227                         android:background="#FFFF0000">
    228                 </FrameLayout>
    229 
    230                 <FrameLayout
    231                         android:layout_width="80dp"
    232                         android:layout_height="80dp"
    233                         android:background="#FF00FF00">
    234                 </FrameLayout>
    235             </LinearLayout>
    236 
    237         </LinearLayout>
    238 
    239     </LinearLayout>
    240 
    241 </FrameLayout>