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 <FrameLayout 35 android:id="@+id/container_message_bar" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:elevation="8dp" 39 android:background="@color/material_grey_50" 40 android:visibility="gone"/> 41 42 <!-- The empty container view --> 43 <FrameLayout 44 android:id="@android:id/empty" 45 android:gravity="center" 46 android:layout_width="match_parent" 47 android:layout_height="match_parent" 48 android:orientation="vertical" 49 android:background="@color/directory_background" 50 android:focusable="true" 51 android:focusableInTouchMode="true" 52 android:visibility="gone"> 53 54 <LinearLayout 55 android:id="@+id/content" 56 android:gravity="center" 57 android:layout_width="match_parent" 58 android:layout_height="match_parent" 59 android:orientation="vertical"> 60 61 <ImageView 62 android:id="@+id/artwork" 63 android:src="@drawable/cabinet" 64 android:adjustViewBounds="true" 65 android:layout_height="250dp" 66 android:layout_width="fill_parent" 67 android:alpha="1" 68 android:layout_centerVertical="true" 69 android:layout_marginBottom="25dp" 70 android:scaleType="fitCenter" 71 android:contentDescription="@null" /> 72 73 <TextView 74 android:id="@+id/message" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:text="@string/empty" 78 style="@android:style/TextAppearance.Material.Subhead" /> 79 80 </LinearLayout> 81 </FrameLayout> 82 83 <!-- This FrameLayout works around b/24189541 --> 84 <FrameLayout 85 android:layout_width="match_parent" 86 android:layout_height="match_parent"> 87 88 <android.support.v7.widget.RecyclerView 89 android:id="@+id/dir_list" 90 android:scrollbars="vertical" 91 android:layout_width="match_parent" 92 android:layout_height="match_parent" 93 android:paddingStart="0dp" 94 android:paddingEnd="0dp" 95 android:paddingTop="0dp" 96 android:paddingBottom="0dp" 97 android:clipToPadding="false" 98 android:scrollbarStyle="outsideOverlay" 99 android:drawSelectorOnTop="true" /> 100 101 </FrameLayout> 102 103</com.android.documentsui.dirlist.AnimationView> 104