• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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<com.android.documentsui.dirlist.AnimationView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:background="@color/directory_background"
22    android:outlineProvider="bounds"
23    android:elevation="4dp"
24    android:orientation="vertical">
25
26    <ProgressBar
27        android:id="@+id/progressbar"
28        android:layout_width="match_parent"
29        android:layout_height="@dimen/progress_bar_height"
30        android:indeterminate="true"
31        style="@style/TrimmedHorizontalProgressBar"
32        android:visibility="gone"/>
33
34    <com.android.documentsui.dirlist.DocumentsSwipeRefreshLayout
35        android:id="@+id/refresh_layout"
36        android:layout_width="match_parent"
37        android:layout_height="match_parent">
38
39        <FrameLayout
40            android:layout_width="match_parent"
41            android:layout_height="match_parent">
42
43            <!-- The empty container view -->
44            <FrameLayout
45                android:id="@android:id/empty"
46                android:gravity="center"
47                android:layout_width="match_parent"
48                android:layout_height="match_parent"
49                android:orientation="vertical"
50                android:background="@color/directory_background"
51                android:focusable="true"
52                android:focusableInTouchMode="true"
53                android:visibility="gone"
54                android:clickable="true">
55
56                <LinearLayout
57                    android:id="@+id/content"
58                    android:gravity="center"
59                    android:layout_width="match_parent"
60                    android:layout_height="match_parent"
61                    android:orientation="vertical">
62
63                    <ImageView
64                        android:id="@+id/artwork"
65                        android:src="@drawable/cabinet"
66                        android:adjustViewBounds="true"
67                        android:layout_height="250dp"
68                        android:layout_width="fill_parent"
69                        android:alpha="1"
70                        android:layout_centerVertical="true"
71                        android:layout_marginBottom="25dp"
72                        android:scaleType="fitCenter"
73                        android:contentDescription="@null"/>
74
75                    <TextView
76                        android:id="@+id/message"
77                        android:layout_width="wrap_content"
78                        android:layout_height="wrap_content"
79                        android:text="@string/empty"
80                        style="@android:style/TextAppearance.Material.Subhead"/>
81
82                </LinearLayout>
83            </FrameLayout>
84
85            <LinearLayout
86                android:id="@+id/file_list"
87                android:layout_width="match_parent"
88                android:layout_height="match_parent"
89                android:orientation="vertical">
90
91                <android.support.v7.widget.RecyclerView
92                    android:id="@+id/dir_list"
93                    android:layout_width="match_parent"
94                    android:layout_height="match_parent"
95                    android:paddingStart="0dp"
96                    android:paddingEnd="0dp"
97                    android:paddingTop="0dp"
98                    android:paddingBottom="0dp"
99                    android:clipToPadding="false"
100                    android:scrollbars="none"
101                    android:drawSelectorOnTop="true"/>
102            </LinearLayout>
103        </FrameLayout>
104
105    </com.android.documentsui.dirlist.DocumentsSwipeRefreshLayout>
106
107</com.android.documentsui.dirlist.AnimationView>
108