Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3      Copyright (C) 2014 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:columnCount="3">
     22 
     23     <!-- Using relative width/height below.
     24          Image might not have correct aspect ratio -->
     25     <!-- Row 0 -->
     26     <TextureView
     27         android:id="@+id/texture_view_1"
     28         android:layout_columnWeight="1"
     29         android:layout_rowWeight="1"
     30         android:layout_width="0dp"
     31         android:layout_height="0dp"/>
     32     <TextureView
     33         android:id="@+id/texture_view_2"
     34         android:layout_columnWeight="1"
     35         android:layout_rowWeight="1"
     36         android:layout_width="0dp"
     37         android:layout_height="0dp"/>
     38     <TextureView
     39         android:id="@+id/texture_view_3"
     40         android:layout_columnWeight="1"
     41         android:layout_rowWeight="1"
     42         android:layout_width="0dp"
     43         android:layout_height="0dp"/>
     44 
     45     <!-- Row 1 -->
     46     <TextureView
     47         android:id="@+id/texture_view_4"
     48         android:layout_columnWeight="1"
     49         android:layout_rowWeight="1"
     50         android:layout_width="0dp"
     51         android:layout_height="0dp"/>
     52     <TextureView
     53         android:id="@+id/texture_view_5"
     54         android:layout_columnWeight="1"
     55         android:layout_rowWeight="1"
     56         android:layout_width="0dp"
     57         android:layout_height="0dp"/>
     58     <!-- space filler -->
     59     <Space
     60         android:layout_columnSpan="1"
     61         android:layout_columnWeight="1"
     62         android:layout_rowWeight="1"
     63         android:layout_width="0dp"
     64         android:layout_height="0dp"/>
     65 
     66     <!-- Row 2 -->
     67     <SurfaceView
     68         android:id="@+id/surface_view_1"
     69         android:layout_columnWeight="1"
     70         android:layout_rowWeight="1"
     71         android:layout_width="0dp"
     72         android:layout_height="0dp"/>
     73 
     74     <SurfaceView
     75         android:id="@+id/surface_view_2"
     76         android:layout_columnWeight="1"
     77         android:layout_rowWeight="1"
     78         android:layout_width="0dp"
     79         android:layout_height="0dp"/>
     80 </GridLayout>
     81