1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (c) 2007 Google Inc. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 --> 19 20 <com.android.mail.browse.ConversationListFooterView 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 android:orientation="horizontal" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:background="@android:color/white"> 26 27 <LinearLayout android:id="@+id/network_error" 28 android:layout_width="match_parent" 29 android:layout_height="?android:attr/listPreferredItemHeight" 30 android:padding="5dip" 31 android:visibility="gone" 32 android:gravity="center_vertical"> 33 34 <ImageView 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:src="@drawable/ic_alert_grey" /> 38 39 <TextView android:id="@+id/error_text" 40 android:layout_width="0dip" 41 android:layout_height="wrap_content" 42 android:layout_weight="1" 43 android:textAppearance="?android:attr/textAppearanceLargeInverse" 44 android:layout_marginBottom="1dip" 45 android:paddingLeft="5dip" 46 android:textColor="@android:color/black" 47 android:text="@string/network_error"/> 48 49 <Button android:id="@+id/error_action_button" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 style="?android:attr/buttonStyleSmall" 53 android:textColor="@android:color/black" 54 android:paddingTop="15dip" 55 android:paddingBottom="15dip" 56 android:paddingLeft="20dip" 57 android:paddingRight="20dip"/> 58 59 </LinearLayout> 60 61 <LinearLayout android:id="@+id/loading" 62 android:layout_width="match_parent" 63 android:layout_height="?android:attr/listPreferredItemHeight" 64 android:gravity="center" 65 android:visibility="gone"> 66 67 <ProgressBar 68 style="?android:attr/progressBarStyle" 69 android:indeterminate="true" 70 android:layout_width="32dp" 71 android:layout_height="32dp" /> 72 73 </LinearLayout> 74 <LinearLayout android:id="@+id/load_more" 75 android:layout_width="match_parent" 76 android:layout_height="?android:attr/listPreferredItemHeight" 77 android:gravity="center" 78 android:visibility="gone" 79 android:clickable="true" 80 android:background="?android:attr/selectableItemBackground"> 81 82 <TextView 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:textAppearance="?android:attr/textAppearanceLargeInverse" 86 android:layout_marginBottom="1dip" 87 android:paddingLeft="5dip" 88 android:textColor="@android:color/black" 89 android:text="@string/load_more"/> 90 91 </LinearLayout> 92 </com.android.mail.browse.ConversationListFooterView> 93