1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2017 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<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <android.support.v7.widget.RecyclerView 23 android:id="@+id/recycler_view" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:background="?android:attr/colorBackground" 27 android:paddingBottom="@dimen/floating_action_button_list_bottom_padding" 28 android:clipToPadding="false"/> 29 30 <!-- Scrollbars are always on the right side of the screen. Layouts should use Rights/Left instead 31 of Start/End --> 32 <com.android.dialer.contactsfragment.FastScroller 33 android:id="@+id/fast_scroller" 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 android:layout_marginTop="8dp" 37 android:layout_marginBottom="8dp" 38 android:clipChildren="false" 39 android:visibility="gone"> 40 41 <TextView 42 android:id="@+id/fast_scroller_container" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_toLeftOf="@+id/fast_scroller_scroll_bar" 46 android:gravity="center" 47 android:textSize="48sp" 48 android:textColor="?android:attr/textColorPrimaryInverse" 49 android:visibility="gone" 50 android:background="@drawable/fast_scroller_container_background"/> 51 52 <ImageView 53 android:id="@+id/fast_scroller_scroll_bar" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_marginLeft="8dp" 57 android:layout_alignParentRight="true" 58 android:paddingRight="16dp" 59 android:src="@drawable/fast_scroller_scroll_bar" /> 60 </com.android.dialer.contactsfragment.FastScroller> 61 62 <!-- Anchored header view --> 63 <include layout="@layout/header"/> 64 65 <com.android.dialer.widget.EmptyContentView 66 android:id="@+id/empty_list_view" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_gravity="center" 70 android:visibility="gone"/> 71</FrameLayout> 72