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"
|
|
|
|
android:layout_marginTop="4dip"
|
|
|
|
android:layout_marginBottom="20dip"
|
|
|
|
android:layout_marginLeft="12dip"
|
|
|
|
android:layout_marginRight="12dip"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="@drawable/gradient_bg_email_widget_holo">
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="42sp"
|
|
|
|
android:layout_marginTop="5dip"
|
|
|
|
android:layout_marginLeft="5dip"
|
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="4dip"
|
|
|
|
android:paddingLeft="16dip"
|
|
|
|
android:paddingRight="8dip"
|
|
|
|
android:background="@drawable/header_bg_email_widget_holo">
|
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"
|
|
|
|
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"
|
|
|
|
android:layout_marginTop="-2sp"
|
|
|
|
android:text="@string/widget_all_mail"
|
|
|
|
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"
|
|
|
|
android:layout_marginTop="-2sp"
|
|
|
|
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"
|
|
|
|
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" />
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/list_div_top_btm_email_widget_holo" />
|
|
|
|
</LinearLayout>
|