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"> |
Rohan Shah | 7054755 | 2014-08-10 13:51:20 -0700 | [diff] [blame] | 28 | |
Rohan Shah | d346688 | 2014-08-22 15:53:33 -0700 | [diff] [blame] | 29 | <LinearLayout |
Mindy Pereira | 8a8c50d | 2012-02-23 11:09:03 -0800 | [diff] [blame] | 30 | android:id="@+id/widget_header" |
| 31 | android:layout_width="match_parent" |
Rohan Shah | 7054755 | 2014-08-10 13:51:20 -0700 | [diff] [blame] | 32 | android:layout_height="48dp" |
Rohan Shah | d346688 | 2014-08-22 15:53:33 -0700 | [diff] [blame] | 33 | android:background="@color/widget_header_bg_color" |
| 34 | style="@style/WidgetHeaderStartMargin"> |
Rohan Shah | 7054755 | 2014-08-10 13:51:20 -0700 | [diff] [blame] | 35 | <TextView |
| 36 | android:id="@+id/widget_folder" |
Rohan Shah | d346688 | 2014-08-22 15:53:33 -0700 | [diff] [blame] | 37 | android:layout_width="0dp" |
Rohan Shah | 7054755 | 2014-08-10 13:51:20 -0700 | [diff] [blame] | 38 | android:layout_height="wrap_content" |
Rohan Shah | d346688 | 2014-08-22 15:53:33 -0700 | [diff] [blame] | 39 | android:layout_weight="1" |
| 40 | android:layout_gravity="center_vertical" |
Rohan Shah | 7054755 | 2014-08-10 13:51:20 -0700 | [diff] [blame] | 41 | android:freezesText="true" |
Rohan Shah | d346688 | 2014-08-22 15:53:33 -0700 | [diff] [blame] | 42 | android:textAlignment="viewStart" |
| 43 | android:includeFontPadding="false" |
| 44 | style="@style/WidgetTitle"/> |
| 45 | <ImageButton |
| 46 | android:id="@+id/widget_compose" |
| 47 | android:layout_width="56dp" |
| 48 | android:layout_height="match_parent" |
| 49 | android:scaleType="center" |
| 50 | android:src="@drawable/ic_widget_compose_wht_24dp" |
| 51 | android:background="?android:attr/selectableItemBackground" |
| 52 | android:contentDescription="@string/compose" /> |
| 53 | </LinearLayout> |
Rohan Shah | 7054755 | 2014-08-10 13:51:20 -0700 | [diff] [blame] | 54 | |
Mindy Pereira | 8a8c50d | 2012-02-23 11:09:03 -0800 | [diff] [blame] | 55 | <LinearLayout |
| 56 | android:id="@+id/widget_configuration" |
| 57 | android:layout_width="match_parent" |
Mark Wei | f8b76a6 | 2013-04-19 18:51:40 -0700 | [diff] [blame] | 58 | android:layout_height="match_parent" |
Mindy Pereira | 8a8c50d | 2012-02-23 11:09:03 -0800 | [diff] [blame] | 59 | android:orientation="horizontal" |
| 60 | android:gravity="center" |
| 61 | android:background="@drawable/gradient_bg_widget_holo" |
| 62 | android:visibility="gone"> |
| 63 | <ImageView |
| 64 | android:src="@mipmap/ic_launcher_mail" |
| 65 | android:layout_width="wrap_content" |
| 66 | android:layout_height="wrap_content" |
| 67 | android:paddingRight="8dip" /> |
| 68 | <TextView |
| 69 | android:layout_width="wrap_content" |
| 70 | android:layout_height="wrap_content" |
| 71 | android:text="@string/tap_to_configure" |
| 72 | android:textColor="@android:color/black" |
| 73 | android:textSize="16sp" |
| 74 | android:textStyle="bold"/> |
| 75 | </LinearLayout> |
Mark Wei | 5383fdd | 2013-04-29 17:25:23 -0700 | [diff] [blame] | 76 | <ListView |
| 77 | android:id="@+id/conversation_list" |
| 78 | android:layout_width="match_parent" |
| 79 | android:layout_height="0dip" |
| 80 | android:layout_weight="1" |
| 81 | android:cacheColorHint="#00000000" |
Mark Wei | 747e678 | 2013-07-29 18:24:45 -0700 | [diff] [blame] | 82 | android:background="@drawable/gradient_bg_widget_holo" |
Rohan Shah | a3edf54 | 2014-08-20 13:28:47 -0700 | [diff] [blame] | 83 | style="@style/WidgetConversationListFade" /> |
Mark Wei | f8b76a6 | 2013-04-19 18:51:40 -0700 | [diff] [blame] | 84 | <TextView |
| 85 | android:id="@+id/empty_conversation_list" |
| 86 | android:layout_width="match_parent" |
| 87 | android:layout_height="0dip" |
| 88 | android:layout_weight="1" |
| 89 | android:gravity="center" |
| 90 | android:text="@string/loading_conversations" |
| 91 | android:textColor="@android:color/black" |
| 92 | android:textSize="16sp" |
| 93 | android:textStyle="bold" |
| 94 | android:background="@drawable/gradient_bg_widget_holo" |
| 95 | android:visibility="gone" /> |
Mindy Pereira | 8a8c50d | 2012-02-23 11:09:03 -0800 | [diff] [blame] | 96 | <LinearLayout android:id="@+id/widget_folder_not_synced" |
| 97 | android:layout_width="match_parent" |
| 98 | android:layout_height="0dip" |
| 99 | android:layout_weight="1" |
| 100 | android:paddingLeft="24dip" |
| 101 | android:paddingRight="24dip" |
| 102 | android:orientation="vertical" |
| 103 | android:gravity="center" |
| 104 | android:background="@drawable/gradient_bg_widget_holo" |
| 105 | android:visibility="gone" > |
| 106 | <TextView |
| 107 | android:layout_width="wrap_content" |
| 108 | android:layout_height="wrap_content" |
| 109 | android:layout_marginBottom="16dip" |
| 110 | android:text="@string/non_synced_folder_description" |
| 111 | android:textColor="@android:color/black" |
| 112 | android:textSize="16sp" /> |
| 113 | <TextView |
| 114 | android:layout_width="match_parent" |
| 115 | android:layout_height="wrap_content" |
| 116 | android:paddingTop="8dip" |
| 117 | android:paddingBottom="8dip" |
| 118 | android:text="@string/tap_to_configure_folder_sync" |
| 119 | android:textColor="@android:color/black" |
| 120 | android:background="@android:color/darker_gray" |
| 121 | android:gravity="center" |
| 122 | android:textSize="16sp" |
| 123 | android:textStyle="bold"/> |
| 124 | </LinearLayout> |
Mindy Pereira | 8a8c50d | 2012-02-23 11:09:03 -0800 | [diff] [blame] | 125 | </LinearLayout> |