3db3e4b795
instead of showing all messages (e.g. messages in drafts, etc...) the "combined inbox" view now only messages in the inbox folder. This is now identical to the "combined inbox" view available in the full email UI. bug 3368613 Change-Id: I0080b56cd2718a3dce82b279277c63c4f43e86dc
114 lines
4.7 KiB
XML
114 lines
4.7 KiB
XML
<?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.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="5dip"
|
|
android:paddingBottom="2dip"
|
|
android:layout_marginTop="6dip"
|
|
android:layout_marginBottom="17dip"
|
|
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_marginLeft="5dip"
|
|
android:layout_marginRight="5dip"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="4dip"
|
|
android:paddingLeft="8dip"
|
|
android:paddingRight="8dip"
|
|
android:background="@drawable/header_bg_email_widget_holo">
|
|
<ImageView
|
|
android:id="@+id/widget_logo"
|
|
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_inbox"
|
|
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>
|
|
<TextView
|
|
android:id="@+id/widget_count"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="-16sp"
|
|
android:paddingRight="8dip"
|
|
android:textSize="48sp"
|
|
android:textColor="@color/widget_unread_count_color"
|
|
android:freezesText="true" />
|
|
<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:layout_marginLeft="2dip"
|
|
android:layout_marginRight="2dip"
|
|
android:background="@drawable/list_div_top_btm_email_widget_holo" />
|
|
<ListView
|
|
android:id="@+id/message_list"
|
|
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:layout_marginLeft="2dip"
|
|
android:layout_marginRight="2dip"
|
|
android:background="@drawable/list_div_top_btm_email_widget_holo" />
|
|
</LinearLayout>
|