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 android:layout_marginLeft="16dip" 72 android:layout_marginTop="16dip" 73 android:layout_marginRight="16dip" /> 74 75 <!-- This invisible worker fragment loads the contact's details --> 76 <fragment 77 android:id="@+id/contact_detail_loader_fragment" 78 class="com.android.contacts.detail.ContactLoaderFragment" 79 android:layout_height="0dip" 80 android:layout_width="0dip" 81 android:visibility="gone" /> 82 </view> 83 84 <!-- Right panel detail view for Groups tab --> 85 <view 86 class="com.android.contacts.widget.TransitionAnimationView" 87 android:id="@+id/group_details_view" 88 android:layout_width="0dip" 89 android:layout_height="match_parent" 90 android:layout_weight="2" 91 android:background="@color/background_primary" 92 android:visibility="gone"> 93 94 <!-- This is the group detail page --> 95 <fragment 96 android:id="@+id/group_detail_fragment" 97 class="com.android.contacts.group.GroupDetailFragment" 98 android:layout_width="match_parent" 99 android:layout_height="match_parent" 100 android:visibility="gone" /> 101 </view> 102 103 <!-- Single panel view under the Favorites tab (Strequent) --> 104 <FrameLayout 105 android:id="@+id/favorites_view" 106 android:layout_width="match_parent" 107 android:layout_height="match_parent"> 108 109 <fragment 110 android:id="@+id/favorites_fragment" 111 class="com.android.contacts.list.ContactTileListFragment" 112 android:layout_height="match_parent" 113 android:layout_width="match_parent" 114 android:layout_marginRight="16dip" 115 android:layout_marginLeft="16dip" /> 116 117 </FrameLayout> 118 119 </LinearLayout> 120 121 <com.android.contacts.widget.InterpolatingLayout 122 android:id="@+id/contacts_unavailable_view" 123 android:layout_width="match_parent" 124 android:layout_height="match_parent" 125 android:visibility="gone"> 126 127 <FrameLayout 128 android:id="@+id/contacts_unavailable_container" 129 android:layout_height="match_parent" 130 android:layout_width="match_parent" 131 ex:layout_narrowParentWidth="800dip" 132 ex:layout_narrowMarginLeft="80dip" 133 ex:layout_narrowMarginRight="80dip" 134 ex:layout_wideParentWidth="1280dip" 135 ex:layout_wideMarginLeft="200dip" 136 ex:layout_wideMarginRight="200dip" 137 android:paddingBottom="20dip" /> 138 139 </com.android.contacts.widget.InterpolatingLayout> 140 </FrameLayout> 141