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