1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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<!-- Use LinearLayout + FrameLayout, just to rely on android:divider and android:showDividers -->
18<RelativeLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:divider="?android:attr/dividerHorizontal"
23    android:showDividers="end"
24    android:clipChildren="false">
25
26    <FrameLayout
27        android:id="@+id/contact_tile_frame"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:layout_alignParentTop="true"
31        android:layout_alignParentLeft="true"
32        android:paddingStart="@dimen/favorites_row_start_padding"
33        android:paddingEnd="@dimen/favorites_row_end_padding" >
34        <com.android.dialer.list.PhoneFavoriteListView
35            android:id="@+id/contact_tile_list"
36            android:layout_width="match_parent"
37            android:layout_height="match_parent"
38            android:paddingTop="@dimen/favorites_row_top_padding"
39            android:numColumns="@integer/contact_tile_column_count_in_favorites"
40            android:clipToPadding="false"
41            android:fadingEdge="none"
42            android:divider="@null"
43            android:paddingBottom="@dimen/floating_action_button_list_bottom_padding"
44            android:nestedScrollingEnabled="true" />
45    </FrameLayout>
46
47    <include
48        android:id="@+id/empty_list_view"
49        android:layout_width="match_parent"
50        android:layout_height="match_parent"
51        layout="@layout/empty_list_view"
52        android:visibility="gone"/>
53
54</RelativeLayout>
55