Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2013 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:orientation="vertical"
     19     android:layout_width="fill_parent"
     20     android:layout_height="fill_parent">
     21 
     22     <ListView
     23         android:id="@android:id/list"
     24         android:layout_width="fill_parent"
     25         android:layout_height="fill_parent" />
     26 
     27     <FrameLayout
     28         android:id="@+id/empty_print_state"
     29         android:layout_width="fill_parent"
     30         android:layout_height="fill_parent"
     31         android:visibility="gone">
     32 
     33         <LinearLayout
     34             android:layout_width="wrap_content"
     35             android:layout_height="wrap_content"
     36             android:layout_gravity="center"
     37             android:gravity="center"
     38             android:orientation="vertical">
     39 
     40             <ImageView
     41                 android:layout_width="wrap_content"
     42                 android:layout_height="wrap_content"
     43                 android:layout_marginBottom="12dip"
     44                 android:src="@*android:drawable/ic_grayedout_printer"
     45                 android:contentDescription="@string/print_searching_for_printers">
     46             </ImageView>
     47 
     48             <TextView
     49                 android:id="@+id/title"
     50                 android:layout_width="wrap_content"
     51                 android:layout_height="wrap_content"
     52                 android:textAppearance="?android:attr/textAppearanceLarge"
     53                 android:textColor="?android:attr/textColorSecondary"
     54                 android:text="@string/print_searching_for_printers">
     55             </TextView>
     56 
     57             <ProgressBar
     58                 android:id="@+id/progress_bar"
     59                 android:layout_width="fill_parent"
     60                 android:layout_height="wrap_content"
     61                 android:indeterminate="true"
     62                 style="?android:attr/progressBarStyleHorizontal">
     63             </ProgressBar>
     64 
     65             <Button
     66                     android:id="@+id/button"
     67                     android:layout_width="wrap_content"
     68                     android:layout_height="wrap_content"
     69                     style="?android:attr/buttonBarButtonStyle"
     70                     android:textAppearance="?android:attr/textAppearanceSmall"
     71                     android:text="@string/print_add_printer"
     72                     android:textAllCaps="true" />
     73 
     74         </LinearLayout>
     75 
     76     </FrameLayout>
     77 
     78 </LinearLayout>
     79