1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:gravity="center_horizontal" 21 android:orientation="vertical"> 22 23 <ImageView 24 android:id="@+id/empty_image" 25 android:layout_width="@dimen/contacts_no_account_empty_image_width" 26 android:layout_height="wrap_content" 27 android:adjustViewBounds="true" 28 android:scaleType="centerInside" 29 android:src="@drawable/contacts_no_account_empty" /> 30 31 <TextView 32 android:id="@+id/message" 33 style="@style/EmptyStateTextStyle" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_marginTop="@dimen/contacts_no_account_empty_text_padding_top" 37 android:text="@string/noContacts" /> 38 39 <Button 40 android:id="@+id/add_account_button" 41 style="@style/NoAccountViewButtonStyle" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="@dimen/contacts_no_account_empty_button_padding_top" 45 android:text="@string/contacts_unavailable_add_account" /> 46 47 <Button 48 android:id="@+id/import_contacts_button" 49 style="@style/NoAccountViewButtonStyle" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:text="@string/contacts_unavailable_import_contacts" /> 53 54 <FrameLayout 55 android:layout_width="match_parent" 56 android:layout_height="match_parent"> 57 58 <ProgressBar 59 android:id="@+id/progress" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_gravity="center" 63 android:indeterminate="true" 64 android:visibility="gone" /> 65 </FrameLayout> 66</LinearLayout> 67