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 | |
yaolu | 491cca5 | 2016-09-30 14:04:40 -0700 | [diff] [blame] | 31 | <LinearLayout |
| 32 | android:id="@+id/alert_container" |
| 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:orientation="horizontal" |
| 36 | android:background="@color/alert_background" |
| 37 | android:paddingStart="20dp" |
| 38 | android:visibility="gone"> |
| 39 | |
| 40 | <TextView |
| 41 | android:id="@+id/alert_text" |
| 42 | android:layout_width="0dp" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_gravity="center_vertical" |
| 45 | android:paddingTop="16dp" |
| 46 | android:paddingBottom="16dp" |
| 47 | android:layout_weight="1" |
| 48 | android:textColor="@android:color/black" |
| 49 | android:textSize="16sp"/> |
| 50 | |
| 51 | <ImageView |
| 52 | android:id="@+id/alert_dismiss_icon" |
| 53 | android:layout_width="56dp" |
| 54 | android:layout_height="match_parent" |
| 55 | android:layout_gravity="center_vertical" |
| 56 | android:contentDescription="@string/dismiss_sync_alert" |
| 57 | android:background="?android:attr/selectableItemBackground" |
| 58 | android:scaleType="center" |
John Shao | bd9ef3c | 2016-12-15 12:42:03 -0800 | [diff] [blame] | 59 | android:src="@drawable/quantum_ic_cancel_vd_theme_24" /> |
yaolu | 491cca5 | 2016-09-30 14:04:40 -0700 | [diff] [blame] | 60 | </LinearLayout> |
| 61 | |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 62 | <!-- Shown only when an Account filter is set. |
| 63 | - paddingTop should be here to show "shade" effect correctly. --> |
Brian Attwell | 39026b7 | 2014-09-05 14:37:47 -0700 | [diff] [blame] | 64 | <include layout="@layout/account_filter_header" /> |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 65 | |
| 66 | <FrameLayout |
| 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="0dip" |
yaolu | 83b45b7 | 2016-06-29 14:44:38 -0700 | [diff] [blame] | 69 | android:layout_weight="1" |
| 70 | android:id="@+id/contact_list"> |
| 71 | |
Zheng Fu | 093e3f9 | 2014-08-26 14:24:41 -0700 | [diff] [blame] | 72 | <include layout="@layout/contact_list_card"/> |
Walter Jang | f7d733a | 2016-08-12 14:23:25 -0700 | [diff] [blame] | 73 | |
Aravind Sreekumar | 7121285 | 2018-04-06 15:47:45 -0700 | [diff] [blame] | 74 | <androidx.swiperefreshlayout.widget.SwipeRefreshLayout |
Walter Jang | f7d733a | 2016-08-12 14:23:25 -0700 | [diff] [blame] | 75 | android:id="@+id/swipe_refresh" |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 76 | android:layout_width="match_parent" |
| 77 | android:layout_height="match_parent" |
Walter Jang | f7d733a | 2016-08-12 14:23:25 -0700 | [diff] [blame] | 78 | android:enabled="false" > |
| 79 | |
| 80 | <view |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 81 | class="com.android.contacts.list.PinnedHeaderListView" |
Walter Jang | f7d733a | 2016-08-12 14:23:25 -0700 | [diff] [blame] | 82 | android:id="@android:id/list" |
| 83 | android:layout_width="match_parent" |
| 84 | android:layout_height="match_parent" |
| 85 | android:layout_marginLeft="?attr/contact_browser_list_padding_left" |
| 86 | android:layout_marginRight="?attr/contact_browser_list_padding_right" |
| 87 | android:layout_marginStart="?attr/contact_browser_list_padding_left" |
| 88 | android:layout_marginEnd="?attr/contact_browser_list_padding_right" |
| 89 | android:paddingTop="?attr/list_item_padding_top" |
| 90 | android:clipToPadding="false" |
| 91 | android:fastScrollEnabled="true" |
| 92 | android:visibility="gone" |
| 93 | android:fadingEdge="none" /> |
Aravind Sreekumar | 7121285 | 2018-04-06 15:47:45 -0700 | [diff] [blame] | 94 | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
Walter Jang | f7d733a | 2016-08-12 14:23:25 -0700 | [diff] [blame] | 95 | |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 96 | <ProgressBar |
| 97 | android:id="@+id/search_progress" |
| 98 | style="?android:attr/progressBarStyleLarge" |
| 99 | android:layout_width="wrap_content" |
| 100 | android:layout_height="wrap_content" |
| 101 | android:layout_gravity="center" |
| 102 | android:visibility="gone" /> |
| 103 | </FrameLayout> |
| 104 | |
Chiao Cheng | c40ec39 | 2012-11-28 18:06:44 -0800 | [diff] [blame] | 105 | </LinearLayout> |