Home | History | Annotate | Download | only in layout
      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
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:orientation="vertical"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:gravity="center_horizontal">
     23 
     24     <ImageView
     25         android:id="@+id/empty_image"
     26         android:layout_height="128dp"
     27         android:layout_width="128dp"
     28         android:layout_marginTop="56dp"
     29         android:alpha="0.38"
     30         android:gravity="center_horizontal" />
     31 
     32     <LinearLayout
     33         android:orientation="vertical"
     34         android:layout_width="wrap_content"
     35         android:layout_height="wrap_content">
     36 
     37         <TextView
     38             android:id="@+id/message"
     39             android:layout_width="wrap_content"
     40             android:layout_height="wrap_content"
     41             android:layout_marginTop="4dp"
     42             android:textAppearance="?android:attr/textAppearanceMedium"
     43             android:textColor="?android:attr/textColorSecondary"/>
     44 
     45         <ProgressBar
     46             android:id="@+id/progress"
     47             android:layout_width="match_parent"
     48             android:layout_height="wrap_content"
     49             style="?android:attr/progressBarStyleHorizontal"
     50             android:indeterminate="true"
     51             android:layout_gravity="center_horizontal"
     52             android:layout_marginTop="12dp" />
     53     </LinearLayout>
     54 
     55     <LinearLayout
     56         android:orientation="vertical"
     57         android:layout_width="wrap_content"
     58         android:layout_height="wrap_content">
     59 
     60         <Button
     61             android:id="@+id/add_account_button"
     62             android:layout_width="match_parent"
     63             android:layout_height="wrap_content"
     64             android:layout_marginTop="50dp"
     65             android:layout_marginBottom="10dp"
     66             android:textColor="@android:color/white"
     67             android:text="@string/contacts_unavailable_add_account" />
     68 
     69         <Button
     70             android:id="@+id/import_contacts_button"
     71             android:layout_width="match_parent"
     72             android:layout_height="wrap_content"
     73             android:textColor="@android:color/white"
     74             android:text="@string/contacts_unavailable_import_contacts" />
     75     </LinearLayout>
     76 </LinearLayout>
     77