• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-auto"
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.common.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:paddingStart="16dip"
50        android:paddingEnd="16dip"
51        android:focusable="false">
52
53        <TextView
54            style="?android:attr/listSeparatorTextViewStyle"
55            android:paddingLeft="8dip"
56            android:paddingRight="8dip"
57            android:paddingStart="8dip"
58            android:paddingEnd="8dip"
59            android:background="@drawable/list_section_divider_holo_custom"
60            android:text="@string/recent"
61            android:textColor="@color/people_app_theme_color"
62            android:textAllCaps="true"
63            android:singleLine="true"
64            android:ellipsize="end" />
65
66    </FrameLayout>
67
68</LinearLayout>
69