1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 <FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <com.android.contacts.widget.InterpolatingLayout 24 android:id="@+id/main_view" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:splitMotionEvents="true"> 28 29 <LinearLayout 30 android:id="@+id/browse_view" 31 android:layout_width="wrap_content" 32 android:layout_height="match_parent" 33 android:orientation="vertical" 34 android:minWidth="100dip" 35 ex:layout_narrowParentWidth="1000dip" 36 ex:layout_narrowWidth="276dip" 37 ex:layout_wideParentWidth="1280dip" 38 ex:layout_wideWidth="376dip" 39 android:background="@drawable/list_background_holo" 40 android:visibility="gone"> 41 42 <!-- All --> 43 <fragment 44 android:id="@+id/all_fragment" 45 class="com.android.contacts.list.DefaultContactBrowseListFragment" 46 android:layout_height="0dip" 47 android:layout_width="match_parent" 48 android:layout_weight="1" /> 49 50 <!-- Groups --> 51 <fragment 52 android:id="@+id/groups_fragment" 53 class="com.android.contacts.group.GroupBrowseListFragment" 54 android:layout_height="match_parent" 55 android:layout_width="match_parent" /> 56 </LinearLayout> 57 58 <view 59 class="com.android.contacts.widget.TransitionAnimationView" 60 android:id="@+id/details_view" 61 android:layout_width="match_parent" 62 android:layout_height="match_parent" 63 ex:layout_narrowParentWidth="800dip" 64 ex:layout_narrowMarginLeft="0dip" 65 ex:layout_narrowMarginRight="0dip" 66 ex:layout_wideParentWidth="1280dip" 67 ex:layout_wideMarginLeft="0dip" 68 ex:layout_wideMarginRight="0dip" 69 ex:clipMarginLeft="0dip" 70 ex:clipMarginTop="3dip" 71 ex:clipMarginRight="3dip" 72 ex:clipMarginBottom="9dip" 73 ex:enterAnimation="@android:animator/fade_in" 74 ex:exitAnimation="@android:animator/fade_out" 75 ex:animationDuration="200" 76 android:visibility="gone"> 77 78 <!-- This layout includes all possible views needed for a contact detail page --> 79 <include 80 android:id="@+id/contact_detail_container" 81 layout="@layout/contact_detail_container" 82 android:layout_width="match_parent" 83 android:layout_height="match_parent"/> 84 85 <!-- This invisible worker fragment loads the contact's details --> 86 <fragment 87 android:id="@+id/contact_detail_loader_fragment" 88 class="com.android.contacts.detail.ContactLoaderFragment" 89 android:layout_height="0dip" 90 android:layout_width="0dip" 91 android:visibility="gone"/> 92 93 <!-- This is the group detail page --> 94 <fragment 95 android:id="@+id/group_detail_fragment" 96 class="com.android.contacts.group.GroupDetailFragment" 97 android:layout_width="match_parent" 98 android:layout_height="match_parent" 99 android:visibility="gone" /> 100 </view> 101 102 <view 103 class="com.android.contacts.widget.TransitionAnimationView" 104 android:id="@+id/favorites_view" 105 android:layout_width="match_parent" 106 android:layout_height="match_parent" 107 ex:clipMarginLeft="0dip" 108 ex:clipMarginTop="3dip" 109 ex:clipMarginRight="3dip" 110 ex:clipMarginBottom="9dip" 111 ex:enterAnimation="@android:animator/fade_in" 112 ex:exitAnimation="@android:animator/fade_out" 113 ex:animationDuration="200"> 114 115 <LinearLayout 116 android:layout_width="match_parent" 117 android:layout_height="match_parent" 118 android:background="@drawable/list_background_holo"> 119 120 <!-- Starred --> 121 <FrameLayout 122 android:layout_width="0dip" 123 android:layout_height="match_parent" 124 android:layout_weight="7" 125 android:background="@drawable/panel_favorites_holo_light"> 126 127 <fragment 128 android:id="@+id/favorites_fragment" 129 class="com.android.contacts.list.ContactTileListFragment" 130 android:layout_height="match_parent" 131 android:layout_width="match_parent" 132 android:layout_marginTop="32dip" 133 android:layout_marginRight="32dip" 134 android:layout_marginLeft="32dip"/> 135 136 </FrameLayout> 137 138 <!-- Most Frequent --> 139 <fragment 140 android:id="@+id/frequent_fragment" 141 class="com.android.contacts.list.ContactTileListFragment" 142 android:layout_width="0dip" 143 android:layout_height="match_parent" 144 android:layout_weight="3" 145 android:layout_marginTop="32dip" 146 android:layout_marginRight="16dip"/> 147 148 </LinearLayout> 149 </view> 150 151 </com.android.contacts.widget.InterpolatingLayout> 152 153 <com.android.contacts.widget.InterpolatingLayout 154 android:id="@+id/contacts_unavailable_view" 155 android:layout_width="match_parent" 156 android:layout_height="match_parent" 157 android:visibility="gone"> 158 159 <FrameLayout 160 android:id="@+id/contacts_unavailable_container" 161 android:layout_height="match_parent" 162 android:layout_width="match_parent" 163 ex:layout_narrowParentWidth="800dip" 164 ex:layout_narrowMarginLeft="80dip" 165 ex:layout_narrowMarginRight="80dip" 166 ex:layout_wideParentWidth="1280dip" 167 ex:layout_wideMarginLeft="200dip" 168 ex:layout_wideMarginRight="200dip" 169 android:paddingBottom="20dip" /> 170 171 </com.android.contacts.widget.InterpolatingLayout> 172 </FrameLayout> 173