Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 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 --> |
Christine Chen | 4fdf594 | 2013-09-24 17:42:32 -0700 | [diff] [blame] | 18 | <RelativeLayout |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 22 | android:divider="?android:attr/dividerHorizontal" |
Yorke Lee | dfb2eee | 2013-06-26 18:24:32 -0700 | [diff] [blame] | 23 | android:showDividers="end" |
Yorke Lee | 9e91bb0 | 2014-03-05 17:50:50 -0800 | [diff] [blame] | 24 | android:clipChildren="false"> |
Christine Chen | 4fdf594 | 2013-09-24 17:42:32 -0700 | [diff] [blame] | 25 | |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 26 | <FrameLayout |
Christine Chen | 4fdf594 | 2013-09-24 17:42:32 -0700 | [diff] [blame] | 27 | android:id="@+id/contact_tile_frame" |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 28 | android:layout_width="match_parent" |
Yorke Lee | 4ed7db8 | 2013-09-27 17:04:00 -0700 | [diff] [blame] | 29 | android:layout_height="match_parent" |
Christine Chen | 4fdf594 | 2013-09-24 17:42:32 -0700 | [diff] [blame] | 30 | android:layout_alignParentTop="true" |
| 31 | android:layout_alignParentLeft="true" |
Yorke Lee | efb2d9c | 2014-04-18 14:05:01 -0700 | [diff] [blame] | 32 | android:paddingStart="@dimen/favorites_row_start_padding" |
| 33 | android:paddingEnd="@dimen/favorites_row_end_padding" > |
Hongwei Wang | bf5b298 | 2013-09-11 10:07:45 -0700 | [diff] [blame] | 34 | <com.android.dialer.list.PhoneFavoriteListView |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 35 | android:id="@+id/contact_tile_list" |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="match_parent" |
Yorke Lee | 4cde566 | 2014-04-18 17:14:58 -0700 | [diff] [blame] | 38 | android:paddingTop="@dimen/favorites_row_top_padding" |
Yorke Lee | efb2d9c | 2014-04-18 14:05:01 -0700 | [diff] [blame] | 39 | android:numColumns="@integer/contact_tile_column_count_in_favorites" |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 40 | android:clipToPadding="false" |
| 41 | android:fadingEdge="none" |
Yorke Lee | bd180af | 2014-05-04 14:50:49 -0700 | [diff] [blame] | 42 | android:divider="@null" |
Yorke Lee | 781ee24 | 2014-05-22 16:11:25 -0700 | [diff] [blame] | 43 | android:paddingBottom="@dimen/floating_action_button_list_bottom_padding" |
Yorke Lee | bd180af | 2014-05-04 14:50:49 -0700 | [diff] [blame] | 44 | android:nestedScrollingEnabled="true" /> |
Yorke Lee | 6b04912 | 2013-07-16 10:38:02 -0700 | [diff] [blame] | 45 | </FrameLayout> |
Christine Chen | 4fdf594 | 2013-09-24 17:42:32 -0700 | [diff] [blame] | 46 | |
| 47 | <include |
| 48 | android:id="@+id/phone_no_favorites_view" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="match_parent" |
| 51 | android:layout_below="@id/contact_tile_frame" |
| 52 | android:layout_alignParentLeft="true" |
| 53 | android:layout_alignParentStart="true" |
| 54 | android:layout_alignParentBottom="true" |
| 55 | layout="@layout/phone_no_favorites" |
| 56 | android:visibility="gone"/> |
Christine Chen | 4fdf594 | 2013-09-24 17:42:32 -0700 | [diff] [blame] | 57 | </RelativeLayout> |