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 73 <!-- This invisible worker fragment loads the contact's details --> 74 <fragment 75 android:id="@+id/contact_detail_loader_fragment" 76 class="com.android.contacts.detail.ContactLoaderFragment" 77 android:layout_height="0dip" 78 android:layout_width="0dip" 79 android:visibility="gone"/> 80 </view> 81 82 <!-- Right panel detail view for Groups tab --> 83 <view 84 class="com.android.contacts.widget.TransitionAnimationView" 85 android:id="@+id/group_details_view" 86 android:layout_width="0dip" 87 android:layout_height="match_parent" 88 android:layout_weight="2" 89 android:visibility="gone"> 90 91 <!-- This is the group detail page --> 92 <fragment 93 android:id="@+id/group_detail_fragment" 94 class="com.android.contacts.group.GroupDetailFragment" 95 android:layout_width="match_parent" 96 android:layout_height="match_parent" 97 android:visibility="gone" /> 98 </view> 99 100 <!-- Two-panel view under the Favorites tab --> 101 <LinearLayout 102 android:id="@+id/favorites_view" 103 android:layout_width="match_parent" 104 android:layout_height="match_parent" 105 android:background="@drawable/list_background_holo" 106 android:baselineAligned="false"> 107 108 <!-- Starred --> 109 <FrameLayout 110 android:layout_width="0dip" 111 android:layout_height="match_parent" 112 android:layout_weight="2" 113 android:background="@drawable/panel_favorites_holo_light"> 114 115 <fragment 116 android:id="@+id/favorites_fragment" 117 class="com.android.contacts.list.ContactTileListFragment" 118 android:layout_height="match_parent" 119 android:layout_width="match_parent" 120 android:layout_marginLeft="16dip" 121 android:layout_marginRight="16dip" 122 android:layout_marginStart="16dip" 123 android:layout_marginEnd="16dip" /> 124 125 </FrameLayout> 126 127 <!-- Most Frequent --> 128 <fragment 129 android:id="@+id/frequent_fragment" 130 class="com.android.contacts.list.ContactTileFrequentFragment" 131 android:layout_width="0dip" 132 android:layout_height="match_parent" 133 android:layout_weight="1" 134 android:layout_marginTop="16dip" 135 android:layout_marginRight="16dip" 136 android:layout_marginEnd="16dip"/> 137 138 </LinearLayout> 139 140 </LinearLayout> 141 142 <com.android.contacts.widget.InterpolatingLayout 143 android:id="@+id/contacts_unavailable_view" 144 android:layout_width="match_parent" 145 android:layout_height="match_parent" 146 android:background="@drawable/background_holo_light" 147 android:visibility="gone"> 148 149 <FrameLayout 150 android:id="@+id/contacts_unavailable_container" 151 android:layout_height="match_parent" 152 android:layout_width="match_parent" 153 ex:layout_narrowParentWidth="800dip" 154 ex:layout_narrowMarginLeft="80dip" 155 ex:layout_narrowMarginRight="80dip" 156 ex:layout_wideParentWidth="1280dip" 157 ex:layout_wideMarginLeft="200dip" 158 ex:layout_wideMarginRight="200dip" 159 android:paddingBottom="20dip" /> 160 161 </com.android.contacts.widget.InterpolatingLayout> 162 </view> 163