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 32 <FrameLayout 33 android:id="@+id/browse_view" 34 android:layout_width="0dp" 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 <view 56 class="com.android.contacts.widget.TransitionAnimationView" 57 android:id="@+id/contact_details_view" 58 android:layout_width="0dp" 59 android:layout_height="match_parent" 60 android:layout_weight="2" 61 android:visibility="gone"> 62 63 <!-- This layout includes all possible views needed for a contact detail page --> 64 <include 65 android:id="@+id/contact_detail_container" 66 layout="@layout/contact_detail_container" 67 android:layout_width="match_parent" 68 android:layout_height="match_parent"/> 69 70 <!-- This invisible worker fragment loads the contact's details --> 71 <fragment 72 android:id="@+id/contact_detail_loader_fragment" 73 class="com.android.contacts.detail.ContactLoaderFragment" 74 android:layout_height="0dip" 75 android:layout_width="0dip" 76 android:visibility="gone"/> 77 </view> 78 79 <view 80 class="com.android.contacts.widget.TransitionAnimationView" 81 android:id="@+id/group_details_view" 82 android:layout_width="0dip" 83 android:layout_height="match_parent" 84 android:layout_weight="2" 85 android:visibility="gone"> 86 87 <!-- This is the group detail page --> 88 <fragment 89 android:id="@+id/group_detail_fragment" 90 class="com.android.contacts.group.GroupDetailFragment" 91 android:layout_width="match_parent" 92 android:layout_height="match_parent" 93 android:visibility="gone" /> 94 </view> 95 96 <LinearLayout 97 android:id="@+id/favorites_view" 98 android:layout_width="match_parent" 99 android:layout_height="match_parent" 100 android:background="@drawable/list_background_holo" 101 android:baselineAligned="false"> 102 103 <!-- Starred --> 104 <FrameLayout 105 android:layout_width="0dip" 106 android:layout_height="match_parent" 107 android:layout_weight="7" 108 android:background="@drawable/panel_favorites_holo_light"> 109 110 <fragment 111 android:id="@+id/favorites_fragment" 112 class="com.android.contacts.list.ContactTileListFragment" 113 android:layout_height="match_parent" 114 android:layout_width="match_parent" 115 android:layout_marginLeft="32dip" 116 android:layout_marginRight="32dip" 117 android:layout_marginStart="32dip" 118 android:layout_marginEnd="32dip"/> 119 120 </FrameLayout> 121 122 <!-- Most Frequent --> 123 <fragment 124 android:id="@+id/frequent_fragment" 125 class="com.android.contacts.list.ContactTileFrequentFragment" 126 android:layout_width="0dip" 127 android:layout_height="match_parent" 128 android:layout_weight="3" 129 android:layout_marginTop="32dip" 130 android:layout_marginRight="16dip" 131 android:layout_marginEnd="16dip"/> 132 133 </LinearLayout> 134 135 </LinearLayout> 136 137 <com.android.contacts.widget.InterpolatingLayout 138 android:id="@+id/contacts_unavailable_view" 139 android:layout_width="match_parent" 140 android:layout_height="match_parent" 141 android:background="@drawable/background_holo_light" 142 android:visibility="gone"> 143 144 <FrameLayout 145 android:id="@+id/contacts_unavailable_container" 146 android:layout_height="match_parent" 147 android:layout_width="match_parent" 148 ex:layout_narrowParentWidth="800dip" 149 ex:layout_narrowMarginLeft="80dip" 150 ex:layout_narrowMarginRight="80dip" 151 ex:layout_wideParentWidth="1280dip" 152 ex:layout_wideMarginLeft="200dip" 153 ex:layout_wideMarginRight="200dip" 154 android:paddingBottom="20dip" /> 155 156 </com.android.contacts.widget.InterpolatingLayout> 157 </view> 158