• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <!-- Placeholder for focus indicator -->
28    <View
29        android:layout_width="4dp"
30        android:layout_height="match_parent"/>
31
32    <LinearLayout
33        android:layout_width="match_parent"
34        android:layout_height="match_parent"
35        android:baselineAligned="false"
36        android:gravity="center_vertical"
37        android:minHeight="@dimen/list_item_height"
38        android:paddingStart="@dimen/list_item_padding"
39        android:paddingEnd="@dimen/list_item_padding"
40        android:orientation="horizontal">
41        <!-- Placeholder for icon -->
42        <View
43            android:layout_width="@dimen/list_item_thumbnail_size"
44            android:layout_height="@dimen/list_item_thumbnail_size"
45            android:layout_gravity="center_vertical"
46            android:layout_marginEnd="16dp"
47            android:layout_marginStart="0dp"/>
48
49        <!-- Column headers -->
50        <LinearLayout
51            android:layout_width="0dp"
52            android:layout_height="match_parent"
53            android:layout_weight="1"
54            android:orientation="horizontal">
55
56            <com.android.documentsui.sorting.HeaderCell
57                android:id="@android:id/title"
58                android:layout_width="0dp"
59                android:layout_height="match_parent"
60                android:layout_weight="0.5"
61                android:layout_marginEnd="12dp"
62                android:focusable="true"
63                android:gravity="center_vertical"
64                android:orientation="horizontal"
65                android:animateLayoutChanges="true">
66
67                <include layout="@layout/shared_cell_content" />
68            </com.android.documentsui.sorting.HeaderCell>
69
70            <com.android.documentsui.sorting.HeaderCell
71                android:id="@android:id/summary"
72                android:layout_width="0dp"
73                android:layout_height="match_parent"
74                android:layout_weight="0.25"
75                android:layout_marginEnd="12dp"
76                android:focusable="true"
77                android:gravity="center_vertical"
78                android:orientation="horizontal"
79                android:animateLayoutChanges="true">
80
81                <include layout="@layout/shared_cell_content" />
82            </com.android.documentsui.sorting.HeaderCell>
83
84            <com.android.documentsui.sorting.HeaderCell
85                android:id="@+id/size"
86                android:layout_width="0dp"
87                android:layout_height="match_parent"
88                android:layout_weight="0.125"
89                android:layout_marginEnd="12dp"
90                android:focusable="true"
91                android:gravity="center_vertical"
92                android:orientation="horizontal"
93                android:animateLayoutChanges="true">
94
95                <include layout="@layout/shared_cell_content" />
96            </com.android.documentsui.sorting.HeaderCell>
97
98            <com.android.documentsui.sorting.HeaderCell
99                android:id="@+id/date"
100                android:layout_width="0dp"
101                android:layout_height="match_parent"
102                android:layout_weight="0.125"
103                android:layout_marginEnd="12dp"
104                android:focusable="true"
105                android:gravity="center_vertical"
106                android:orientation="horizontal"
107                android:animateLayoutChanges="true">
108
109                <include layout="@layout/shared_cell_content" />
110            </com.android.documentsui.sorting.HeaderCell>
111        </LinearLayout>
112    </LinearLayout>
113</LinearLayout>