• 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 details list for when the contact has social updates. The
19  entry shows the contact's basic info and maintains vertical padding to ensure that the first
20  contact detail is visible (and below the tab carousel). The photo is not displayed here
21  because it will be shown in the tab carousel.
22-->
23<LinearLayout
24    xmlns:android="http://schemas.android.com/apk/res/android"
25    xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
26    android:layout_width="match_parent"
27    android:layout_height="wrap_content"
28    android:orientation="vertical"
29    android:layout_marginTop="30dip">
30
31    <!-- Add a first item that gives us enough space to show the carousel -->
32    <view
33        class="com.android.contacts.widget.ProportionalLayout"
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        ex:ratio="0.66"
37        ex:direction="widthToHeight">
38
39        <!-- Put a dummy view here because the ProportionalLayout requires one -->
40        <View
41            android:layout_width="match_parent"
42            android:layout_height="match_parent" />
43
44    </view>
45
46    <TextView
47        android:id="@+id/name"
48        android:layout_width="match_parent"
49        android:layout_height="wrap_content"
50        android:textAppearance="?android:attr/textAppearanceLarge"
51        android:textSize="@dimen/detail_header_name_text_size" />
52
53    <TextView
54        android:id="@+id/company"
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:textAppearance="?android:attr/textAppearanceMedium"
58        android:textColor="?android:attr/textColorSecondary" />
59
60    <CheckBox
61        android:id="@+id/star"
62        android:layout_width="wrap_content"
63        android:layout_height="wrap_content"
64        android:layout_gravity="top"
65        android:contentDescription="@string/description_star"
66        style="?android:attr/starStyle" />
67
68</LinearLayout>
69