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 android:baselineAligned="false"> 30 31 <!-- Left panel browse list for Groups or All tabs --> 32 <FrameLayout 33 android:id="@+id/browse_view" 34 android:layout_width="0dip" 35 android:layout_height="match_parent" 36 android:layout_weight="1" 37 android:background="@drawable/list_background_holo" 38 android:visibility="gone"> 39 40 <!-- All --> 41 <fragment 42 android:id="@+id/all_fragment" 43 class="com.android.contacts.list.DefaultContactBrowseListFragment" 44 android:layout_height="match_parent" 45 android:layout_width="match_parent" /> 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 </FrameLayout> 54 55 <!-- Right panel detail view for All tab --> 56 <view 57 class="com.android.contacts.widget.TransitionAnimationView" 58 android:id="@+id/contact_details_view" 59 android:layout_width="0dip" 60 android:layout_height="match_parent" 61 android:layout_weight="2" 62 android:background="@color/background_primary" 63 android:visibility="gone"> 64 65 <!-- This layout includes all possible views needed for a contact detail page --> 66 <include 67 android:id="@+id/contact_detail_container" 68 layout="@layout/contact_detail_container" 69 android:layout_width="match_parent" 70 android:layout_height="match_parent"/> 71 72 <!-- This invisible worker fragment loads the contact's details --> 73 <fragment 74 android:id="@+id/contact_detail_loader_fragment" 75 class="com.android.contacts.detail.ContactLoaderFragment" 76 android:layout_height="0dip" 77 android:layout_width="0dip" 78 android:visibility="gone"/> 79 </view> 80 81 <!-- Right panel detail view for Groups tab --> 82 <view 83 class="com.android.contacts.widget.TransitionAnimationView" 84 android:id="@+id/group_details_view" 85 android:layout_width="0dip" 86 android:layout_height="match_parent" 87 android:layout_weight="2" 88 android:background="@color/background_primary" 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_marginRight="16dip" 121 android:layout_marginLeft="16dip"/> 122 123 </FrameLayout> 124 125 <!-- Most Frequent --> 126 <fragment 127 android:id="@+id/frequent_fragment" 128 class="com.android.contacts.list.ContactTileFrequentFragment" 129 android:layout_width="0dip" 130 android:layout_height="match_parent" 131 android:layout_weight="1" 132 android:layout_marginTop="16dip" 133 android:layout_marginRight="16dip"/> 134 135 </LinearLayout> 136 137 </LinearLayout> 138 139 <com.android.contacts.widget.InterpolatingLayout 140 android:id="@+id/contacts_unavailable_view" 141 android:layout_width="match_parent" 142 android:layout_height="match_parent" 143 android:visibility="gone"> 144 145 <FrameLayout 146 android:id="@+id/contacts_unavailable_container" 147 android:layout_height="match_parent" 148 android:layout_width="match_parent" 149 ex:layout_narrowParentWidth="800dip" 150 ex:layout_narrowMarginLeft="80dip" 151 ex:layout_narrowMarginRight="80dip" 152 ex:layout_wideParentWidth="1280dip" 153 ex:layout_wideMarginLeft="200dip" 154 ex:layout_wideMarginRight="200dip" 155 android:paddingBottom="20dip" /> 156 157 </com.android.contacts.widget.InterpolatingLayout> 158 </FrameLayout> 159