Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 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 |
Daniel Lehmann | 440ee9a | 2010-09-03 15:18:19 -0700 | [diff] [blame] | 7 | |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Daniel Lehmann | 440ee9a | 2010-09-03 15:18:19 -0700 | [diff] [blame] | 9 | |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 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 | |
Daniel Lehmann | c2687c3 | 2010-04-19 18:20:44 -0700 | [diff] [blame] | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Daniel Lehmann | 18f104f | 2010-05-07 15:41:11 -0700 | [diff] [blame] | 18 | android:id="@+id/contact_detail" |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 19 | android:orientation="vertical" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent"> |
| 22 | |
Daniel Lehmann | cdef2b6 | 2010-06-06 18:25:49 -0700 | [diff] [blame] | 23 | <com.android.contacts.views.detail.ContactDetailHeaderView |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 24 | android:id="@+id/contact_header_widget" |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="wrap_content"/> |
| 27 | |
| 28 | <ListView android:id="@android:id/list" |
| 29 | android:layout_width="match_parent" |
Daniel Lehmann | cdef2b6 | 2010-06-06 18:25:49 -0700 | [diff] [blame] | 30 | android:layout_height="0px" |
| 31 | android:layout_weight="1" |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 32 | android:background="@drawable/title_bar_shadow" |
| 33 | /> |
Daniel Lehmann | 440ee9a | 2010-09-03 15:18:19 -0700 | [diff] [blame] | 34 | |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 35 | <ScrollView android:id="@android:id/empty" |
| 36 | android:layout_width="match_parent" |
Daniel Lehmann | cdef2b6 | 2010-06-06 18:25:49 -0700 | [diff] [blame] | 37 | android:layout_height="0px" |
| 38 | android:layout_weight="1" |
| 39 | android:visibility="gone" |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 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> |
Daniel Lehmann | 18db43d | 2010-09-30 18:16:59 -0700 | [diff] [blame^] | 53 | |
| 54 | <!-- "Copy to my contacts"- button --> |
| 55 | <Button |
| 56 | android:id="@+id/copyLocal" |
| 57 | android:layout_width="wrap_content" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:text="@string/menu_copyContact" |
| 60 | android:visibility="gone" |
| 61 | android:layout_gravity="right" |
| 62 | android:layout_marginRight="40dip" |
| 63 | android:layout_marginTop="20dip" |
| 64 | android:layout_marginBottom="20dip" /> |
Daniel Lehmann | c2687c3 | 2010-04-19 18:20:44 -0700 | [diff] [blame] | 65 | </LinearLayout> |
Daniel Lehmann | 4cd9441 | 2010-04-08 16:44:36 -0700 | [diff] [blame] | 66 | |