replicant-packages_apps_Email/res/layout/widget.xml
Ben Komalo 8466f79a06 Asset drop.
- this syncs up the UX repo with the developer repo so that the assets
now match. We should be able to do wholesale drops/diffs from now on.
- lots of changes to widget so that it is (mostly) up to spec now, and
matches the preview

Bug: 5225385
Bug: 5205578
Bug: 4320895
Change-Id: I8ccbadcfc17cdb406599497edc91165809f55d68
2011-08-30 12:57:38 -07:00

103 lines
4.1 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:layout_marginTop="6dip"
android:layout_marginBottom="6dip"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dip"
android:gravity="center_vertical"
android:paddingLeft="8dip"
android:paddingRight="8dip"
android:orientation="horizontal"
android:background="@drawable/header_bg_email_widget_holo">
<ImageView
android:id="@+id/widget_logo"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_marginRight="8dip"
android:src="@mipmap/ic_launcher_email" />
<LinearLayout
android:id="@+id/widget_header"
android:layout_width="0dip"
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:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/widget_all_mail"
android:textColor="@color/widget_title_color"
/>
<TextView
android:id="@+id/widget_tap"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="@string/widget_other_views"
android:textColor="@color/widget_title_color"
/>
</LinearLayout>
<TextView
android:id="@+id/widget_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="12dip"
android:textSize="36sp"
android:textStyle="bold"
android:textColor="@color/widget_unread_color"
android:freezesText="true" />
<ImageView
android:id="@+id/widget_compose"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_menu_compose_normal_holo_light" />
</LinearLayout>
<ListView
android:id="@+id/message_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:cacheColorHint="#00000000"
android:background="@drawable/gradient_bg_email_widget_holo" />
<!-- TODO: remove this tap to configure logic. It's obsolete. -->
<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:text="@string/widget_touch_to_configure"
android:textSize="16sp"
android:visibility="gone"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/list_div_top_btm_email_widget_holo" />
</LinearLayout>