Home | History | Annotate | Download | only in layout-sw720dp-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2016 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 <LinearLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:id="@+id/table_header"
     21     android:orientation="horizontal"
     22     android:layout_width="match_parent"
     23     android:layout_height="@dimen/doc_header_height"
     24     android:background="@drawable/sort_widget_background"
     25     android:visibility="gone">
     26 
     27     <LinearLayout
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:baselineAligned="false"
     31         android:gravity="center_vertical"
     32         android:minHeight="@dimen/list_item_height"
     33         android:paddingStart="@dimen/list_item_padding"
     34         android:paddingEnd="@dimen/list_item_padding"
     35         android:orientation="horizontal">
     36         <!-- Placeholder for icon -->
     37         <View
     38             android:layout_width="@dimen/list_item_thumbnail_size"
     39             android:layout_height="@dimen/list_item_thumbnail_size"
     40             android:layout_gravity="center_vertical"
     41             android:layout_marginEnd="16dp"
     42             android:layout_marginStart="0dp"/>
     43 
     44         <!-- Column headers -->
     45         <LinearLayout
     46             android:layout_width="0dp"
     47             android:layout_height="match_parent"
     48             android:layout_weight="1"
     49             android:orientation="horizontal">
     50 
     51             <com.android.documentsui.sorting.HeaderCell
     52                 android:id="@android:id/title"
     53                 android:layout_width="0dp"
     54                 android:layout_height="match_parent"
     55                 android:layout_weight="0.375"
     56                 android:layout_marginEnd="12dp"
     57                 android:focusable="true"
     58                 android:gravity="center_vertical"
     59                 android:orientation="horizontal"
     60                 android:animateLayoutChanges="true">
     61 
     62                 <include layout="@layout/shared_cell_content" />
     63             </com.android.documentsui.sorting.HeaderCell>
     64 
     65             <com.android.documentsui.sorting.HeaderCell
     66                 android:id="@android:id/summary"
     67                 android:layout_width="0dp"
     68                 android:layout_height="match_parent"
     69                 android:layout_weight="0.25"
     70                 android:layout_marginEnd="12dp"
     71                 android:focusable="true"
     72                 android:gravity="center_vertical"
     73                 android:orientation="horizontal"
     74                 android:animateLayoutChanges="true">
     75 
     76                 <include layout="@layout/shared_cell_content" />
     77             </com.android.documentsui.sorting.HeaderCell>
     78 
     79             <com.android.documentsui.sorting.HeaderCell
     80                 android:id="@+id/file_type"
     81                 android:layout_width="0dp"
     82                 android:layout_height="match_parent"
     83                 android:layout_weight="0.125"
     84                 android:layout_marginEnd="12dp"
     85                 android:focusable="true"
     86                 android:gravity="center_vertical"
     87                 android:orientation="horizontal"
     88                 android:animateLayoutChanges="true">
     89 
     90                 <include layout="@layout/shared_cell_content" />
     91             </com.android.documentsui.sorting.HeaderCell>
     92 
     93             <com.android.documentsui.sorting.HeaderCell
     94                 android:id="@+id/size"
     95                 android:layout_width="0dp"
     96                 android:layout_height="match_parent"
     97                 android:layout_weight="0.125"
     98                 android:layout_marginEnd="12dp"
     99                 android:focusable="true"
    100                 android:gravity="center_vertical"
    101                 android:orientation="horizontal"
    102                 android:animateLayoutChanges="true">
    103 
    104                 <include layout="@layout/shared_cell_content" />
    105             </com.android.documentsui.sorting.HeaderCell>
    106 
    107             <com.android.documentsui.sorting.HeaderCell
    108                 android:id="@+id/date"
    109                 android:layout_width="0dp"
    110                 android:layout_height="match_parent"
    111                 android:layout_weight="0.125"
    112                 android:layout_marginEnd="12dp"
    113                 android:focusable="true"
    114                 android:gravity="center_vertical"
    115                 android:orientation="horizontal"
    116                 android:animateLayoutChanges="true">
    117 
    118                 <include layout="@layout/shared_cell_content" />
    119             </com.android.documentsui.sorting.HeaderCell>
    120         </LinearLayout>
    121     </LinearLayout>
    122 </LinearLayout>