2010-09-23 16:19:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2010 The Android Open Source Project
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2010-12-17 17:54:20 +00:00
|
|
|
<LinearLayout
|
2010-09-23 16:19:44 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2011-01-18 17:45:15 +00:00
|
|
|
android:paddingTop="5dip"
|
|
|
|
android:paddingBottom="2dip"
|
|
|
|
android:layout_marginTop="6dip"
|
|
|
|
android:layout_marginBottom="17dip"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:layout_marginLeft="12dip"
|
|
|
|
android:layout_marginRight="12dip"
|
2011-03-11 18:24:08 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="@drawable/gradient_bg_email_widget_holo">
|
2010-12-17 17:54:20 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="42sp"
|
|
|
|
android:layout_marginLeft="5dip"
|
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="4dip"
|
2010-12-21 00:15:23 +00:00
|
|
|
android:paddingLeft="8dip"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:paddingRight="8dip"
|
2011-03-08 00:21:43 +00:00
|
|
|
android:background="@drawable/widget_header_bg">
|
2010-09-23 16:19:44 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/widget_logo"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2011-03-11 18:24:08 +00:00
|
|
|
android:layout_marginTop="1sp"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:paddingRight="8dip"
|
|
|
|
android:src="@drawable/ic_email_email_widget_holo" />
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/widget_header"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight = "1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/widget_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2011-03-11 18:24:08 +00:00
|
|
|
android:layout_marginTop="-1sp"
|
2011-01-19 18:57:19 +00:00
|
|
|
android:text="@string/widget_all_mail"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:shadowColor="@color/widget_label_shadow_color"
|
|
|
|
android:shadowRadius="3"
|
|
|
|
android:freezesText="true" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/widget_tap"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2011-03-11 18:24:08 +00:00
|
|
|
android:layout_marginTop="-5sp"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/widget_other_views"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textColor="@color/widget_account_color" />
|
|
|
|
</LinearLayout>
|
2010-09-23 16:19:44 +00:00
|
|
|
<TextView
|
2010-12-17 17:54:20 +00:00
|
|
|
android:id="@+id/widget_count"
|
2010-09-23 16:19:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:layout_marginTop="-16sp"
|
|
|
|
android:paddingRight="8dip"
|
|
|
|
android:textSize="48sp"
|
|
|
|
android:textColor="@color/widget_unread_count_color"
|
2010-12-10 18:04:00 +00:00
|
|
|
android:freezesText="true" />
|
2010-12-17 17:54:20 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/widget_compose"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="2dip"
|
|
|
|
android:src="@drawable/btn_ic_new_email_email_widget_holo_dark" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2011-01-18 17:45:15 +00:00
|
|
|
android:layout_marginLeft="2dip"
|
|
|
|
android:layout_marginRight="2dip"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:background="@drawable/list_div_top_btm_email_widget_holo" />
|
2010-09-23 16:19:44 +00:00
|
|
|
<ListView
|
|
|
|
android:id="@+id/message_list"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginLeft="5dip"
|
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
android:paddingTop="6dip"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:fadingEdge="none"
|
|
|
|
android:divider="@drawable/list_div_email_widget_holo"
|
|
|
|
android:cacheColorHint="#00000000" />
|
2011-01-26 00:09:16 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tap_to_configure"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dip"
|
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="fill"
|
|
|
|
android:gravity="center"
|
|
|
|
android:paddingTop="6dip"
|
|
|
|
android:text="@string/widget_touch_to_configure"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:visibility="gone"/>
|
2010-12-17 17:54:20 +00:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2011-01-18 17:45:15 +00:00
|
|
|
android:layout_marginLeft="2dip"
|
|
|
|
android:layout_marginRight="2dip"
|
2010-12-17 17:54:20 +00:00
|
|
|
android:background="@drawable/list_div_top_btm_email_widget_holo" />
|
|
|
|
</LinearLayout>
|