contact_details.xml revision e15efb9074c5497aaca00d960c310fff07817925
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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/contact_details"
19    android:orientation="vertical"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22    
23    <com.android.loaderapp.ContactHeaderWidget
24        android:id="@+id/contact_header_widget"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27    />
28        
29    <ListView android:id="@android:id/list"
30        android:layout_width="match_parent"
31        android:layout_height="match_parent"
32        android:background="@drawable/title_bar_shadow"
33    />
34    
35    <ScrollView android:id="@android:id/empty"
36        android:layout_width="match_parent"
37        android:layout_height="0dip"
38        android:layout_weight="1"
39        android:fillViewport="true"
40    >
41        <TextView android:id="@+id/emptyText"
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            android:text="@string/no_contact_details"
45            android:textSize="20sp"
46            android:textColor="?android:attr/textColorSecondary"
47            android:paddingLeft="10dip"
48            android:paddingRight="10dip"
49            android:paddingTop="10dip"
50            android:lineSpacingMultiplier="0.92"
51        />
52    </ScrollView>
53
54</LinearLayout>
55
56