blob: 362209cc8879ec10de4df04559f41948590d865a [file] [log] [blame]
Chiao Chengc40ec392012-11-28 18:06:44 -08001<?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"
28 android:background="?attr/contact_browser_background" >
29
30 <!-- Shown only when an Account filter is set.
31 - paddingTop should be here to show "shade" effect correctly. -->
32 <include
33 android:id="@+id/account_filter_header_container"
34 layout="@layout/account_filter_header" />
35
36 <FrameLayout
37 android:layout_width="match_parent"
38 android:layout_height="0dip"
39 android:layout_weight="1" >
40 <view
41 class="com.android.contacts.common.list.PinnedHeaderListView"
42 android:id="@android:id/list"
43 android:layout_width="match_parent"
44 android:layout_height="match_parent"
45 android:layout_marginLeft="?attr/contact_browser_list_padding_left"
46 android:layout_marginRight="?attr/contact_browser_list_padding_right"
47 android:fastScrollEnabled="true"
48 android:fadingEdge="none" />
49 <ProgressBar
50 android:id="@+id/search_progress"
51 style="?android:attr/progressBarStyleLarge"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_gravity="center"
55 android:visibility="gone" />
56 </FrameLayout>
57
58 <ViewStub
59 android:id="@+id/footer_stub"
60 android:layout="@layout/footer_panel"
61 android:layout_width="fill_parent"
62 android:layout_height="wrap_content" />
63
64</LinearLayout>