blob: 357050ed6f7a6886c14b530097e4f1bc57c3612f [file] [log] [blame]
Mindy Pereira8a8c50d2012-02-23 11:09:03 -08001<?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 Shah70547552014-08-10 13:51:20 -070028
Rohan Shahd3466882014-08-22 15:53:33 -070029 <LinearLayout
Mindy Pereira8a8c50d2012-02-23 11:09:03 -080030 android:id="@+id/widget_header"
31 android:layout_width="match_parent"
Rohan Shah70547552014-08-10 13:51:20 -070032 android:layout_height="48dp"
Rohan Shahd3466882014-08-22 15:53:33 -070033 android:background="@color/widget_header_bg_color"
34 style="@style/WidgetHeaderStartMargin">
Rohan Shah70547552014-08-10 13:51:20 -070035 <TextView
36 android:id="@+id/widget_folder"
Rohan Shahd3466882014-08-22 15:53:33 -070037 android:layout_width="0dp"
Rohan Shah70547552014-08-10 13:51:20 -070038 android:layout_height="wrap_content"
Rohan Shahd3466882014-08-22 15:53:33 -070039 android:layout_weight="1"
40 android:layout_gravity="center_vertical"
Rohan Shah70547552014-08-10 13:51:20 -070041 android:freezesText="true"
Rohan Shahd3466882014-08-22 15:53:33 -070042 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 Shah70547552014-08-10 13:51:20 -070054
Mindy Pereira8a8c50d2012-02-23 11:09:03 -080055 <LinearLayout
56 android:id="@+id/widget_configuration"
57 android:layout_width="match_parent"
Mark Weif8b76a62013-04-19 18:51:40 -070058 android:layout_height="match_parent"
Mindy Pereira8a8c50d2012-02-23 11:09:03 -080059 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 Wei5383fdd2013-04-29 17:25:23 -070076 <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 Wei747e6782013-07-29 18:24:45 -070082 android:background="@drawable/gradient_bg_widget_holo"
Rohan Shaha3edf542014-08-20 13:28:47 -070083 style="@style/WidgetConversationListFade" />
Mark Weif8b76a62013-04-19 18:51:40 -070084 <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 Pereira8a8c50d2012-02-23 11:09:03 -080096 <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 Pereira8a8c50d2012-02-23 11:09:03 -0800125</LinearLayout>