Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2015 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="horizontal"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:gravity="center_horizontal">
     23 
     24     <LinearLayout
     25         android:orientation="vertical"
     26         android:layout_marginLeft="40dp"
     27         android:layout_marginRight="40dp"
     28         android:layout_width="wrap_content"
     29         android:layout_height="match_parent">
     30         <ImageView
     31             android:id="@+id/empty_image"
     32             android:layout_height="128dp"
     33             android:layout_width="128dp"
     34             android:layout_marginTop="60dp"
     35             android:alpha="0.38"
     36             android:gravity="center_horizontal"/>
     37 
     38         <TextView
     39             android:id="@+id/message"
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content"
     42             android:layout_marginTop="4dp"
     43             android:textAppearance="?android:attr/textAppearanceMedium"
     44             android:textColor="?android:attr/textColorSecondary"
     45             android:layout_gravity="center_horizontal"
     46             android:textIsSelectable="false"/>
     47 
     48         <ProgressBar
     49             android:id="@+id/progress"
     50             android:layout_width="match_parent"
     51             android:layout_height="wrap_content"
     52             style="?android:attr/progressBarStyleHorizontal"
     53             android:indeterminate="true"
     54             android:layout_gravity="center_horizontal"
     55             android:layout_marginTop="12dp" />
     56     </LinearLayout>
     57 
     58     <!-- This buttons_container is landscape exclusive because we want the two buttons to be of
     59          the same width (wrapping the longer content) and the layout width to be 208dp. -->
     60     <LinearLayout
     61         android:id="@+id/buttons_container"
     62         android:orientation="vertical"
     63         android:layout_width="208dp"
     64         android:layout_height="match_parent">
     65         <LinearLayout
     66             android:orientation="vertical"
     67             android:layout_width="wrap_content"
     68             android:layout_height="match_parent"
     69             android:layout_gravity="center_horizontal">
     70 
     71             <Button
     72                 android:id="@+id/add_account_button"
     73                 android:layout_width="match_parent"
     74                 android:layout_height="wrap_content"
     75                 android:layout_marginTop="85dp"
     76                 android:layout_marginBottom="10dp"
     77                 android:textColor="@android:color/white"
     78                 android:text="@string/contacts_unavailable_add_account" />
     79 
     80             <Button
     81                 android:id="@+id/import_contacts_button"
     82                 android:layout_width="match_parent"
     83                 android:layout_height="wrap_content"
     84                 android:textColor="@android:color/white"
     85                 android:text="@string/contacts_unavailable_import_contacts" />
     86         </LinearLayout>
     87     </LinearLayout>
     88 
     89 </LinearLayout>
     90