• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:layout_marginTop="6dip"
22    android:layout_marginBottom="6dip"
23    android:orientation="vertical">
24    <LinearLayout
25        android:layout_width="match_parent"
26        android:layout_height="48dip"
27        android:gravity="center_vertical"
28        android:paddingLeft="8dip"
29        android:paddingRight="8dip"
30        android:orientation="horizontal"
31        android:background="@drawable/header_bg_email_widget_holo">
32        <ImageView
33            android:id="@+id/widget_logo"
34            android:layout_width="32dip"
35            android:layout_height="32dip"
36            android:layout_marginRight="8dip"
37            android:src="@mipmap/ic_launcher_email" />
38        <LinearLayout
39            android:id="@+id/widget_header"
40            android:layout_width="0dip"
41            android:layout_height="wrap_content"
42            android:layout_weight="1"
43            android:orientation="vertical">
44            <TextView
45                android:id="@+id/widget_title"
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:textAppearance="?android:attr/textAppearanceMedium"
49                android:text="@string/widget_all_mail"
50                android:textColor="@color/widget_title_color"
51                />
52            <TextView
53                android:id="@+id/widget_tap"
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content"
56                android:singleLine="true"
57                android:textAppearance="?android:attr/textAppearanceSmall"
58                android:text="@string/widget_other_views"
59                android:textColor="@color/widget_title_color"
60                />
61        </LinearLayout>
62        <TextView
63            android:id="@+id/widget_count"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_marginRight="12dip"
67            android:textSize="36sp"
68            android:textStyle="bold"
69            android:textColor="@color/widget_unread_color"
70            android:freezesText="true" />
71        <ImageView
72            android:id="@+id/widget_compose"
73            android:layout_width="wrap_content"
74            android:layout_height="wrap_content"
75            android:src="@drawable/ic_menu_compose_normal_holo_light" />
76    </LinearLayout>
77    <ListView
78        android:id="@+id/message_list"
79        android:layout_width="match_parent"
80        android:layout_height="wrap_content"
81        android:layout_weight="1"
82        android:cacheColorHint="#00000000"
83        android:background="@drawable/gradient_bg_email_widget_holo" />
84
85    <!-- TODO: remove this tap to configure logic. It's obsolete. -->
86    <TextView
87        android:id="@+id/tap_to_configure"
88        android:layout_width="match_parent"
89        android:layout_height="wrap_content"
90        android:layout_marginLeft="5dip"
91        android:layout_marginRight="5dip"
92        android:layout_weight="1"
93        android:layout_gravity="fill"
94        android:gravity="center"
95        android:text="@string/widget_touch_to_configure"
96        android:textSize="16sp"
97        android:visibility="gone"/>
98    <ImageView
99        android:layout_width="match_parent"
100        android:layout_height="wrap_content"
101        android:background="@drawable/list_div_top_btm_email_widget_holo" />
102</LinearLayout>
103