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 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:background="@color/directory_background" 23 android:outlineProvider="bounds" 24 android:elevation="4dp" 25 android:orientation="vertical"> 26 27 <ProgressBar 28 android:id="@+id/progressbar" 29 android:layout_width="match_parent" 30 android:layout_height="@dimen/progress_bar_height" 31 android:indeterminate="true" 32 style="@style/TrimmedHorizontalProgressBar" 33 android:visibility="gone"/> 34 35 <com.android.documentsui.dirlist.DocumentsSwipeRefreshLayout 36 android:id="@+id/refresh_layout" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent"> 39 40 <android.support.v7.widget.RecyclerView 41 android:id="@+id/dir_list" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" 44 android:paddingStart="0dp" 45 android:paddingEnd="0dp" 46 android:paddingTop="0dp" 47 android:paddingBottom="0dp" 48 android:clipToPadding="false" 49 android:scrollbars="none" 50 android:drawSelectorOnTop="true" 51 app:fastScrollEnabled="true" 52 app:fastScrollVerticalThumbDrawable="@drawable/fast_scroll_thumb_drawable" 53 app:fastScrollVerticalTrackDrawable="@drawable/fast_scroll_track_drawable" 54 app:fastScrollHorizontalThumbDrawable="@drawable/fast_scroll_thumb_drawable" 55 app:fastScrollHorizontalTrackDrawable="@drawable/fast_scroll_track_drawable"/> 56 57 </com.android.documentsui.dirlist.DocumentsSwipeRefreshLayout> 58 59 </com.android.documentsui.dirlist.AnimationView> 60