You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
4.9 KiB
122 lines
4.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/table_header"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/doc_header_height"
|
|
android:background="@drawable/sort_widget_background"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:baselineAligned="false"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="@dimen/list_item_height"
|
|
android:paddingStart="@dimen/list_item_padding"
|
|
android:paddingEnd="@dimen/list_item_width"
|
|
android:orientation="horizontal">
|
|
<!-- Placeholder for icon -->
|
|
<View
|
|
android:layout_width="@dimen/list_item_thumbnail_size"
|
|
android:layout_height="@dimen/list_item_thumbnail_size"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginStart="0dp"/>
|
|
|
|
<!-- Column headers -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<com.android.documentsui.sorting.HeaderCell
|
|
android:id="@android:id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.4"
|
|
android:layout_marginEnd="12dp"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<include layout="@layout/shared_cell_content" />
|
|
</com.android.documentsui.sorting.HeaderCell>
|
|
|
|
<com.android.documentsui.sorting.HeaderCell
|
|
android:id="@android:id/summary"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0"
|
|
android:layout_marginEnd="0dp"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<include layout="@layout/shared_cell_content" />
|
|
</com.android.documentsui.sorting.HeaderCell>
|
|
|
|
<com.android.documentsui.sorting.HeaderCell
|
|
android:id="@+id/file_type"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.2"
|
|
android:layout_marginEnd="12dp"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<include layout="@layout/shared_cell_content" />
|
|
</com.android.documentsui.sorting.HeaderCell>
|
|
|
|
<com.android.documentsui.sorting.HeaderCell
|
|
android:id="@+id/size"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.2"
|
|
android:layout_marginEnd="12dp"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<include layout="@layout/shared_cell_content" />
|
|
</com.android.documentsui.sorting.HeaderCell>
|
|
|
|
<com.android.documentsui.sorting.HeaderCell
|
|
android:id="@+id/date"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.2"
|
|
android:layout_marginEnd="12dp"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<include layout="@layout/shared_cell_content" />
|
|
</com.android.documentsui.sorting.HeaderCell>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |