Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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 <ScrollView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
     20     android:layout_width="match_parent"
     21     android:fillViewport="true">
     22     <LinearLayout
     23         android:orientation="vertical"
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent"
     26         android:gravity="center_horizontal"
     27         android:background="@drawable/panel_message">
     28         <TextView
     29             android:id="@+id/message"
     30             android:layout_width="wrap_content"
     31             android:layout_height="wrap_content"
     32             android:layout_marginTop="48dip"
     33             android:textAppearance="?android:attr/textAppearanceLarge"
     34             android:textColor="?android:attr/textColorSecondary" />
     35 
     36         <TextView
     37             android:id="@+id/secondary_message"
     38             android:layout_width="wrap_content"
     39             android:layout_height="wrap_content"
     40             android:textAppearance="?android:attr/textAppearanceSmall"
     41             android:textColor="?android:attr/textColorSecondary"
     42             android:layout_gravity="center_horizontal"
     43             android:layout_marginBottom="@dimen/no_accounts_message_margin" />
     44 
     45         <LinearLayout
     46             android:orientation="vertical"
     47             android:layout_marginLeft="48dip"
     48             android:layout_marginRight="48dip"
     49             android:layout_width="wrap_content"
     50             android:layout_height="match_parent">
     51             <Button
     52                 android:id="@+id/create_contact_button"
     53                 android:layout_width="match_parent"
     54                 android:layout_height="wrap_content"
     55                 android:layout_marginBottom="15dip"
     56                 android:text="@string/contacts_unavailable_create_contact" />
     57 
     58             <Button
     59                 android:id="@+id/add_account_button"
     60                 android:layout_width="match_parent"
     61                 android:layout_height="wrap_content"
     62                 android:layout_marginBottom="15dip"
     63                 android:text="@string/contacts_unavailable_add_account" />
     64 
     65             <!-- TODO: Use a string that says "Import" instead of "Import/export contacts"-->
     66             <Button
     67                 android:id="@+id/import_contacts_button"
     68                 android:layout_width="match_parent"
     69                 android:layout_height="wrap_content"
     70                 android:layout_marginBottom="15dip"
     71                 android:text="@string/dialog_import_export" />
     72 
     73             <Button
     74                 android:id="@+id/import_failure_uninstall_button"
     75                 android:layout_width="match_parent"
     76                 android:layout_height="wrap_content"
     77                 android:layout_marginBottom="15dip"
     78                 android:text="@string/upgrade_out_of_memory_uninstall" />
     79 
     80             <Button
     81                 android:id="@+id/import_failure_retry_button"
     82                 android:layout_width="match_parent"
     83                 android:layout_height="wrap_content"
     84                 android:layout_marginBottom="15dip"
     85                 android:text="@string/upgrade_out_of_memory_retry" />
     86 
     87             <ProgressBar
     88                 android:id="@+id/progress"
     89                 android:layout_width="wrap_content"
     90                 android:layout_height="wrap_content"
     91                 android:layout_gravity="center_horizontal"
     92                 android:layout_marginBottom="15dip" />
     93         </LinearLayout>
     94     </LinearLayout>
     95 </ScrollView>