Mindy Pereira | 6681f6b | 2012-03-09 13:55:54 -0800 | [diff] [blame] | 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 | |
| 26 | <LinearLayout android:id="@+id/network_error" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="?android:attr/listPreferredItemHeight" |
| 29 | android:padding="5dip" |
| 30 | android:visibility="gone" |
| 31 | android:gravity="center_vertical"> |
| 32 | |
| 33 | <ImageView |
| 34 | android:layout_width="wrap_content" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:src="@drawable/ic_email_network_error" /> |
| 37 | |
| 38 | <TextView android:id="@+id/error_text" |
| 39 | android:layout_width="0dip" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_weight="1" |
| 42 | android:textAppearance="?android:attr/textAppearanceLargeInverse" |
| 43 | android:layout_marginBottom="1dip" |
| 44 | android:paddingLeft="5dip" |
| 45 | android:textColor="@android:color/black" |
| 46 | android:text="@string/network_error"/> |
| 47 | |
| 48 | <Button android:id="@+id/retry_button" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content" |
| 51 | style="?android:attr/buttonStyleSmall" |
| 52 | android:textColor="@android:color/black" |
| 53 | android:text="@string/retry" |
| 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 | <TextView |
| 74 | android:layout_width="wrap_content" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:textAppearance="?android:attr/textAppearanceLargeInverse" |
| 77 | android:layout_marginBottom="1dip" |
| 78 | android:paddingLeft="5dip" |
| 79 | android:textColor="@android:color/black" |
| 80 | android:text="@string/loading"/> |
| 81 | |
| 82 | </LinearLayout> |
Mindy Pereira | 11dd5ef | 2012-03-10 15:10:18 -0800 | [diff] [blame] | 83 | <LinearLayout android:id="@+id/load_more" |
| 84 | android:layout_width="match_parent" |
| 85 | android:layout_height="?android:attr/listPreferredItemHeight" |
| 86 | android:gravity="center" |
| 87 | android:visibility="gone" |
| 88 | android:clickable="true" |
| 89 | android:background="?android:attr/selectableItemBackground"> |
Mindy Pereira | 6681f6b | 2012-03-09 13:55:54 -0800 | [diff] [blame] | 90 | |
Mindy Pereira | 11dd5ef | 2012-03-10 15:10:18 -0800 | [diff] [blame] | 91 | <TextView |
| 92 | android:layout_width="wrap_content" |
| 93 | android:layout_height="wrap_content" |
| 94 | android:textAppearance="?android:attr/textAppearanceLargeInverse" |
| 95 | android:layout_marginBottom="1dip" |
| 96 | android:paddingLeft="5dip" |
| 97 | android:textColor="@android:color/black" |
| 98 | android:text="@string/load_more"/> |
| 99 | |
| 100 | </LinearLayout> |
Mindy Pereira | 6681f6b | 2012-03-09 13:55:54 -0800 | [diff] [blame] | 101 | </com.android.mail.browse.ConversationListFooterView> |