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 <view 18 class="com.android.contacts.widget.TransitionAnimationView" 19 android:id="@+id/people_view" 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:ex="http://schemas.android.com/apk/res-auto" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent"> 24 25 <LinearLayout 26 android:id="@+id/main_view" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:orientation="horizontal" 30 android:splitMotionEvents="true" 31 android:baselineAligned="false"> 32 33 <!-- Left panel browse list for Groups or All tabs --> 34 <FrameLayout 35 android:id="@+id/browse_view" 36 android:layout_width="0dip" 37 android:layout_height="match_parent" 38 android:layout_weight="1" 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="match_parent" 47 android:layout_width="match_parent" /> 48 49 <!-- Groups --> 50 <fragment 51 android:id="@+id/groups_fragment" 52 class="com.android.contacts.group.GroupBrowseListFragment" 53 android:layout_height="match_parent" 54 android:layout_width="match_parent" /> 55 </FrameLayout> 56 57 <!-- Right panel detail view for All tab --> 58 <view 59 class="com.android.contacts.widget.TransitionAnimationView" 60 android:id="@+id/contact_details_view" 61 android:layout_width="0dip" 62 android:layout_height="match_parent" 63 android:layout_weight="2" 64 android:visibility="gone"> 65 66 <!-- This layout includes all possible views needed for a contact detail page --> 67 <include 68 android:id="@+id/contact_detail_container" 69 layout="@layout/contact_detail_container" 70 android:layout_width="match_parent" 71 android:layout_height="match_parent" 72 android:layout_marginLeft="16dip" 73 android:layout_marginRight="16dip" 74 android:layout_marginStart="16dip" 75 android:layout_marginEnd="16dip" 76 android:layout_marginTop="16dip" /> 77 78 <!-- This invisible worker fragment loads the contact's details --> 79 <fragment 80 android:id="@+id/contact_detail_loader_fragment" 81 class="com.android.contacts.detail.ContactLoaderFragment" 82 android:layout_height="0dip" 83 android:layout_width="0dip" 84 android:visibility="gone"/> 85 </view> 86 87 <!-- Right panel detail view for Groups tab --> 88 <view 89 class="com.android.contacts.widget.TransitionAnimationView" 90 android:id="@+id/group_details_view" 91 android:layout_width="0dip" 92 android:layout_height="match_parent" 93 android:layout_weight="2" 94 android:visibility="gone"> 95 96 <!-- This is the group detail page --> 97 <fragment 98 android:id="@+id/group_detail_fragment" 99 class="com.android.contacts.group.GroupDetailFragment" 100 android:layout_width="match_parent" 101 android:layout_height="match_parent" 102 android:visibility="gone" /> 103 </view> 104 105 <!-- Two-panel view under the Favorites tab --> 106 <LinearLayout 107 android:id="@+id/favorites_view" 108 android:layout_width="match_parent" 109 android:layout_height="match_parent" 110 android:background="@drawable/list_background_holo" 111 android:baselineAligned="false"> 112 113 <!-- Starred --> 114 <FrameLayout 115 android:layout_width="0dip" 116 android:layout_height="match_parent" 117 android:layout_weight="10" 118 android:background="@drawable/panel_favorites_holo_light"> 119 120 <fragment 121 android:id="@+id/favorites_fragment" 122 class="com.android.contacts.list.ContactTileListFragment" 123 android:layout_height="match_parent" 124 android:layout_width="match_parent" 125 android:layout_marginLeft="16dip" 126 android:layout_marginRight="16dip" 127 android:layout_marginStart="16dip" 128 android:layout_marginEnd="16dip" /> 129 130 </FrameLayout> 131 132 <!-- Most Frequent --> 133 <fragment 134 android:id="@+id/frequent_fragment" 135 class="com.android.contacts.list.ContactTileFrequentFragment" 136 android:layout_width="0dip" 137 android:layout_height="match_parent" 138 android:layout_weight="8" 139 android:layout_marginTop="16dip" 140 android:layout_marginRight="16dip" 141 android:layout_marginEnd="16dip"/> 142 143 </LinearLayout> 144 145 </LinearLayout> 146 147 <com.android.contacts.widget.InterpolatingLayout 148 android:id="@+id/contacts_unavailable_view" 149 android:layout_width="match_parent" 150 android:layout_height="match_parent" 151 android:background="@drawable/background_holo_light" 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 </view> 168