1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 <!-- 18 This is a header entry in the contact updates list. 19 --> 20 <LinearLayout 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:orientation="vertical"> 26 27 <!-- This blank view pushes the other content down because of the tab carousel --> 28 <view 29 class="com.android.contacts.widget.ProportionalLayout" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:layout_marginBottom="@dimen/detail_contact_photo_shadow_height" 33 ex:ratio="0.5" 34 ex:direction="widthToHeight"> 35 36 <!-- Put a dummy view here because the ProportionalLayout requires one --> 37 <FrameLayout 38 android:layout_width="match_parent" 39 android:layout_height="match_parent"/> 40 41 </view> 42 43 <!-- "Recent" header text --> 44 <FrameLayout 45 android:layout_width="match_parent" 46 android:layout_height="32dip" 47 android:paddingLeft="16dip" 48 android:paddingRight="16dip" 49 android:focusable="false"> 50 51 <TextView 52 style="?android:attr/listSeparatorTextViewStyle" 53 android:paddingLeft="8dip" 54 android:paddingRight="8dip" 55 android:background="@drawable/list_section_divider_holo_custom" 56 android:text="@string/recent" 57 android:textColor="@color/people_app_theme_color" 58 android:textAllCaps="true" 59 android:singleLine="true" 60 android:ellipsize="end" /> 61 62 </FrameLayout> 63 64 </LinearLayout>