Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2008 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 | <!-- android:paddingTop is used instead of android:layout_marginTop. It looks |
| 18 | android:layout_marginTop is ignored when used with <fragment></fragment>, which |
| 19 | only happens in Tablet UI since we rely on ViewPager in Phone UI. |
| 20 | Instead, android:layout_marginTop inside <fragment /> is effective. --> |
| 21 | |
| 22 | <LinearLayout |
| 23 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 24 | android:id="@+id/pinned_header_list_layout" |
| 25 | android:orientation="vertical" |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="match_parent" |
Gary Mai | 3a01c8d | 2016-08-01 16:54:44 -0700 | [diff] [blame^] | 28 | android:visibility="gone" |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 29 | android:background="?attr/contact_browser_background" > |
| 30 | |
| 31 | <!-- Shown only when an Account filter is set. |
| 32 | - paddingTop should be here to show "shade" effect correctly. --> |
Brian Attwell | 39026b7 | 2014-09-05 14:37:47 -0700 | [diff] [blame] | 33 | <include layout="@layout/account_filter_header" /> |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 34 | |
| 35 | <FrameLayout |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="0dip" |
yaolu | 83b45b7 | 2016-06-29 14:44:38 -0700 | [diff] [blame] | 38 | android:layout_weight="1" |
| 39 | android:id="@+id/contact_list"> |
| 40 | |
Zheng Fu | 093e3f9 | 2014-08-26 14:24:41 -0700 | [diff] [blame] | 41 | <include layout="@layout/contact_list_card"/> |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 42 | <view |
| 43 | class="com.android.contacts.common.list.PinnedHeaderListView" |
| 44 | android:id="@android:id/list" |
| 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="match_parent" |
| 47 | android:layout_marginLeft="?attr/contact_browser_list_padding_left" |
| 48 | android:layout_marginRight="?attr/contact_browser_list_padding_right" |
Fabrice Di Meglio | 7eab4d4 | 2013-04-03 20:59:09 -0700 | [diff] [blame] | 49 | android:layout_marginStart="?attr/contact_browser_list_padding_left" |
| 50 | android:layout_marginEnd="?attr/contact_browser_list_padding_right" |
Brian Attwell | ce3a76c | 2014-09-09 14:31:01 -0700 | [diff] [blame] | 51 | android:paddingTop="?attr/list_item_padding_top" |
| 52 | android:clipToPadding="false" |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 53 | android:fastScrollEnabled="true" |
Gary Mai | 3a01c8d | 2016-08-01 16:54:44 -0700 | [diff] [blame^] | 54 | android:visibility="gone" |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 55 | android:fadingEdge="none" /> |
| 56 | <ProgressBar |
| 57 | android:id="@+id/search_progress" |
| 58 | style="?android:attr/progressBarStyleLarge" |
| 59 | android:layout_width="wrap_content" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_gravity="center" |
| 62 | android:visibility="gone" /> |
| 63 | </FrameLayout> |
| 64 | |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 65 | </LinearLayout> |