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