Mindy Pereira | 8a8c50d | 2012-02-23 11:09:03 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2012 Google Inc. |
| 4 | Licensed to The Android Open Source Project. |
| 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 | <LinearLayout |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
| 23 | android:layout_marginTop="@dimen/widget_margin_top" |
| 24 | android:layout_marginLeft="@dimen/widget_margin_left" |
| 25 | android:layout_marginRight="@dimen/widget_margin_right" |
| 26 | android:layout_marginBottom="@dimen/widget_margin_bottom" |
| 27 | android:orientation="vertical"> |
| 28 | <LinearLayout |
| 29 | android:id="@+id/widget_header" |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="48dp" |
| 32 | android:orientation="horizontal" |
| 33 | android:paddingLeft="8dip" |
| 34 | android:paddingRight="8dip" |
| 35 | android:background="@drawable/header_bg_widget_holo" |
| 36 | android:gravity="center_vertical"> |
| 37 | <ImageView |
| 38 | android:id="@+id/widget_icon" |
| 39 | android:layout_width="32dip" |
| 40 | android:layout_height="32dip" |
| 41 | android:layout_marginRight="8dip" |
| 42 | android:src="@mipmap/ic_launcher_mail" /> |
| 43 | <LinearLayout |
| 44 | android:layout_width="0dip" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_weight = "1" |
| 47 | android:layout_marginRight="8dip" |
| 48 | android:orientation="vertical"> |
| 49 | <TextView |
| 50 | android:id="@+id/widget_folder" |
| 51 | style="@style/WidgetTitle" |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:freezesText="true" /> |
| 55 | <TextView |
| 56 | android:id="@+id/widget_account" |
| 57 | style="@style/WidgetSubtitle" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:freezesText="true" /> |
| 61 | </LinearLayout> |
| 62 | <!-- Note: We can't set "freezesText" on the widget_unread_count view, as the launcher can |
| 63 | restore stale data over updated data. --> |
| 64 | <TextView |
| 65 | android:id="@+id/widget_unread_count" |
| 66 | style="@style/UnreadCount" |
| 67 | android:layout_marginRight="12dip" |
| 68 | android:textColor="#777777" /> |
| 69 | <ImageButton |
| 70 | android:id="@+id/widget_compose" |
| 71 | android:layout_width="wrap_content" |
| 72 | android:layout_height="wrap_content" |
| 73 | android:src="@drawable/ic_menu_compose_normal_holo_light" |
| 74 | android:background="?android:attr/selectableItemBackground" |
| 75 | android:paddingLeft="4dip" |
| 76 | android:paddingBottom="4dip" /> |
| 77 | </LinearLayout> |
| 78 | <ListView |
| 79 | android:id="@+id/conversation_list" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="0dip" |
| 82 | android:layout_weight="1" |
| 83 | android:cacheColorHint="#00000000" |
| 84 | android:background="@drawable/gradient_bg_widget_holo" /> |
| 85 | <LinearLayout |
| 86 | android:id="@+id/widget_configuration" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="0dip" |
| 89 | android:layout_weight="1" |
| 90 | android:orientation="horizontal" |
| 91 | android:gravity="center" |
| 92 | android:background="@drawable/gradient_bg_widget_holo" |
| 93 | android:visibility="gone"> |
| 94 | <ImageView |
| 95 | android:src="@mipmap/ic_launcher_mail" |
| 96 | android:layout_width="wrap_content" |
| 97 | android:layout_height="wrap_content" |
| 98 | android:paddingRight="8dip" /> |
| 99 | <TextView |
| 100 | android:layout_width="wrap_content" |
| 101 | android:layout_height="wrap_content" |
| 102 | android:text="@string/tap_to_configure" |
| 103 | android:textColor="@android:color/black" |
| 104 | android:textSize="16sp" |
| 105 | android:textStyle="bold"/> |
| 106 | </LinearLayout> |
| 107 | <LinearLayout android:id="@+id/widget_folder_not_synced" |
| 108 | android:layout_width="match_parent" |
| 109 | android:layout_height="0dip" |
| 110 | android:layout_weight="1" |
| 111 | android:paddingLeft="24dip" |
| 112 | android:paddingRight="24dip" |
| 113 | android:orientation="vertical" |
| 114 | android:gravity="center" |
| 115 | android:background="@drawable/gradient_bg_widget_holo" |
| 116 | android:visibility="gone" > |
| 117 | <TextView |
| 118 | android:layout_width="wrap_content" |
| 119 | android:layout_height="wrap_content" |
| 120 | android:layout_marginBottom="16dip" |
| 121 | android:text="@string/non_synced_folder_description" |
| 122 | android:textColor="@android:color/black" |
| 123 | android:textSize="16sp" /> |
| 124 | <TextView |
| 125 | android:layout_width="match_parent" |
| 126 | android:layout_height="wrap_content" |
| 127 | android:paddingTop="8dip" |
| 128 | android:paddingBottom="8dip" |
| 129 | android:text="@string/tap_to_configure_folder_sync" |
| 130 | android:textColor="@android:color/black" |
| 131 | android:background="@android:color/darker_gray" |
| 132 | android:gravity="center" |
| 133 | android:textSize="16sp" |
| 134 | android:textStyle="bold"/> |
| 135 | </LinearLayout> |
| 136 | <ImageView |
| 137 | android:layout_width="match_parent" |
| 138 | android:layout_height="wrap_content" |
| 139 | android:background="@drawable/list_div_top_btm_widget_holo" /> |
| 140 | </LinearLayout> |