summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJin Cao <jinyan@google.com>2014-08-19 16:32:42 -0700
committerJin Cao <jinyan@google.com>2014-08-20 17:15:15 -0700
commit4c59495929c9b8a57fbcc05ad419a329240dbd00 (patch)
tree5901e8e9f17875b6445ef8ffe5d1cff280534d78 /res
parent33ca5c670394671177f82ed049d8d7c6920164a7 (diff)
downloadandroid_packages_apps_UnifiedEmail-4c59495929c9b8a57fbcc05ad419a329240dbd00.tar.gz
android_packages_apps_UnifiedEmail-4c59495929c9b8a57fbcc05ad419a329240dbd00.tar.bz2
android_packages_apps_UnifiedEmail-4c59495929c9b8a57fbcc05ad419a329240dbd00.zip
[Quantum TL] nested folders
Update the nested folders UI to reflect the newest redlines. Also removed all signs of list_edge_tablet since it's no longer relevant. b/16017301 Change-Id: I24fcb43984b595a4fed84622e79ce76deaa92d2b
Diffstat (limited to 'res')
-rw-r--r--res/drawable/ic_collapse_24dp.xml7
-rw-r--r--res/drawable/list_edge_tablet.xml24
-rw-r--r--res/layout/conversation_long_press_to_select_tip_view.xml1
-rw-r--r--res/layout/conversation_outbox_tip_view.xml1
-rw-r--r--res/layout/conversation_photo_teaser_view.xml1
-rw-r--r--res/layout/conversation_sync_disabled_tip_view.xml1
-rw-r--r--res/layout/folder_teaser_item.xml90
-rw-r--r--res/layout/nested_folder_teaser_view.xml89
-rw-r--r--res/layout/teaser_right_edge.xml24
-rw-r--r--res/values-ldrtl/styles-ldrtl.xml13
-rw-r--r--res/values/colors.xml7
-rw-r--r--res/values/dimen.xml11
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/values/styles.xml22
14 files changed, 118 insertions, 175 deletions
diff --git a/res/drawable/ic_collapse_24dp.xml b/res/drawable/ic_collapse_24dp.xml
new file mode 100644
index 000000000..903decb36
--- /dev/null
+++ b/res/drawable/ic_collapse_24dp.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<rotate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:drawable="@drawable/ic_expand_more_24dp"
+ android:fromDegrees="180"
+ android:toDegrees="180"
+ android:visible="true" /> \ No newline at end of file
diff --git a/res/drawable/list_edge_tablet.xml b/res/drawable/list_edge_tablet.xml
deleted file mode 100644
index d6aae7628..000000000
--- a/res/drawable/list_edge_tablet.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2013 Google Inc.
- Licensed to 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.
--->
-
-<shape xmlns:android="http://schemas.android.com/apk/res/android">
- <size
- android:width="1dp" />
- <solid
- android:color="@color/light_gray" />
-</shape>
diff --git a/res/layout/conversation_long_press_to_select_tip_view.xml b/res/layout/conversation_long_press_to_select_tip_view.xml
index 59b17ff12..dc0f3d077 100644
--- a/res/layout/conversation_long_press_to_select_tip_view.xml
+++ b/res/layout/conversation_long_press_to_select_tip_view.xml
@@ -48,7 +48,6 @@
android:src="@drawable/ic_cancel_holo_light"
style="@style/DismissButtonStyle" />
- <include layout="@layout/teaser_right_edge" />
</LinearLayout>
</com.android.mail.ui.ConversationLongPressTipView>
diff --git a/res/layout/conversation_outbox_tip_view.xml b/res/layout/conversation_outbox_tip_view.xml
index 6277c300f..e10f9232f 100644
--- a/res/layout/conversation_outbox_tip_view.xml
+++ b/res/layout/conversation_outbox_tip_view.xml
@@ -47,7 +47,6 @@
android:src="@drawable/ic_cancel_holo_light"
style="@style/DismissButtonStyle" />
- <include layout="@layout/teaser_right_edge" />
</LinearLayout>
</com.android.mail.ui.ConversationsInOutboxTipView>
diff --git a/res/layout/conversation_photo_teaser_view.xml b/res/layout/conversation_photo_teaser_view.xml
index 6aac4d8a4..f66c16976 100644
--- a/res/layout/conversation_photo_teaser_view.xml
+++ b/res/layout/conversation_photo_teaser_view.xml
@@ -57,7 +57,6 @@
android:src="@drawable/ic_cancel_holo_light"
style="@style/DismissButtonStyle" />
- <include layout="@layout/teaser_right_edge" />
</LinearLayout>
</com.android.mail.ui.ConversationPhotoTeaserView>
diff --git a/res/layout/conversation_sync_disabled_tip_view.xml b/res/layout/conversation_sync_disabled_tip_view.xml
index 1ed63a739..8d96d70ce 100644
--- a/res/layout/conversation_sync_disabled_tip_view.xml
+++ b/res/layout/conversation_sync_disabled_tip_view.xml
@@ -61,7 +61,6 @@
android:src="@drawable/ic_cancel_holo_light"
style="@style/DismissButtonStyle" />
- <include layout="@layout/teaser_right_edge" />
</LinearLayout>
</com.android.mail.ui.ConversationSyncDisabledTipView>
diff --git a/res/layout/folder_teaser_item.xml b/res/layout/folder_teaser_item.xml
index 65bd68030..f949d5d08 100644
--- a/res/layout/folder_teaser_item.xml
+++ b/res/layout/folder_teaser_item.xml
@@ -15,61 +15,61 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="56dp"
- android:background="@drawable/folder_teaser_item_background">
-
- <ImageView
- android:id="@+id/folder_imageView"
- android:layout_width="24dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:duplicateParentState="true"
- style="@style/FolderTeaserMarginStartStyle" />
+ android:layout_height="wrap_content"
+ android:background="@drawable/folder_teaser_item_background"
+ android:orientation="vertical">
<LinearLayout
- android:id="@+id/text_layout"
- android:layout_width="0dip"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:layout_gravity="center_vertical"
- android:duplicateParentState="true"
- android:orientation="vertical"
- style="@style/FolderTeaserLabelMarginStyle" >
+ android:minHeight="@dimen/folder_teaser_item_height"
+ style="@style/FolderTeaserMarginEndStyle">
- <TextView
- android:id="@+id/folder_textView"
- android:layout_width="wrap_content"
+ <ImageView
+ android:id="@+id/nested_folder_icon"
+ android:layout_width="@dimen/folder_teaser_start_margin"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:src="@drawable/ic_drawer_folder_24dp" />
+
+ <LinearLayout
+ android:id="@+id/text_layout"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:duplicateParentState="true"
- android:includeFontPadding="false"
- android:textColor="@color/folder_teaser_main_text"
- android:textSize="16sp"
- android:textStyle="bold"
- android:singleLine="true"
- android:ellipsize="end" />
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/folder_textView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textSize="16sp"
+ android:textColor="@color/folder_teaser_main_text"/>
+
+ <TextView
+ android:id="@+id/senders_textView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textSize="14sp"
+ android:textColor="@color/folder_teaser_sub_text" />
+
+ </LinearLayout>
<TextView
- android:id="@+id/senders_textView"
+ android:id="@+id/count_textView"
android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:duplicateParentState="true"
- android:includeFontPadding="false"
- android:fontFamily="sans-serif-light"
- android:textColor="@color/folder_teaser_senders_text"
- android:textSize="12sp"
- android:singleLine="true"
- android:ellipsize="end" />
+ android:layout_height="match_parent"
+ style="@style/FolderTeaserCountTextStyle" />
</LinearLayout>
- <TextView
- android:id="@+id/count_textView"
- android:layout_width="57sp"
- android:layout_height="20sp"
- android:layout_gravity="center_vertical"
- android:gravity="center"
- android:textColor="@color/folder_teaser_count_text"
- android:textSize="14sp"
- style="@style/FolderTeaserMarginEndStyle" />
+ <View style="@style/ConversationListDividerStyleIndented" />
</LinearLayout>
diff --git a/res/layout/nested_folder_teaser_view.xml b/res/layout/nested_folder_teaser_view.xml
index 9e71f61c0..0f0e74745 100644
--- a/res/layout/nested_folder_teaser_view.xml
+++ b/res/layout/nested_folder_teaser_view.xml
@@ -15,65 +15,56 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.mail.ui.NestedFolderTeaserView xmlns:android="http://schemas.android.com/apk/res/android"
+
+<com.android.mail.ui.NestedFolderTeaserView
+ xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal" >
+ android:background="@drawable/conversation_item_background_selector"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:id="@+id/nested_folder_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" />
<LinearLayout
- android:layout_width="0dp"
+ android:id="@+id/show_more_folders_row"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@drawable/conversation_item_background_selector"
- android:orientation="vertical" >
+ android:layout_gravity="center_vertical"
+ android:background="@drawable/folder_teaser_item_background"
+ android:minHeight="@dimen/folder_teaser_item_height"
+ style="@style/FolderTeaserMarginEndStyle">
- <LinearLayout
- android:id="@+id/nested_folder_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:divider="?android:dividerHorizontal"
- android:showDividers="middle|end" >
- </LinearLayout>
+ <ImageView
+ android:id="@+id/show_more_folders_icon"
+ android:layout_width="@dimen/folder_teaser_start_margin"
+ android:layout_height="match_parent"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:scaleType="center" />
- <LinearLayout
- android:id="@+id/show_more_folders_row"
- android:background="@drawable/folder_teaser_item_background"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:paddingBottom="12dp"
- android:paddingTop="12dp" >
+ <TextView
+ android:id="@+id/show_more_folders_textView"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:gravity="center_vertical"
+ android:singleLine="true"
+ android:textSize="16sp"
+ android:textColor="@color/folder_teaser_main_text" />
- <TextView
- android:id="@+id/show_more_folders_textView"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_weight="1"
- android:duplicateParentState="true"
- android:ellipsize="end"
- android:includeFontPadding="false"
- android:singleLine="true"
- android:textColor="@color/teaser_main_text"
- android:textSize="16sp"
- android:textStyle="bold" />
+ <TextView
+ android:id="@+id/show_more_folders_count_textView"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ style="@style/FolderTeaserCountTextStyle" />
- <TextView
- android:id="@+id/show_more_folders_count_textView"
- android:layout_width="wrap_content"
- android:layout_height="24sp"
- android:layout_marginLeft="12dp"
- android:layout_marginRight="16dp"
- android:gravity="center"
- android:minWidth="@dimen/folder_teaser_count_textview_minwidth"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:textColor="@color/folder_teaser_count_text"
- android:textSize="16sp" />
- </LinearLayout>
</LinearLayout>
- <include layout="@layout/teaser_right_edge" />
+ <View style="@style/ConversationListDividerStyle" />
</com.android.mail.ui.NestedFolderTeaserView> \ No newline at end of file
diff --git a/res/layout/teaser_right_edge.xml b/res/layout/teaser_right_edge.xml
deleted file mode 100644
index c3c0270d3..000000000
--- a/res/layout/teaser_right_edge.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2013 Google Inc.
- Licensed to 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.
--->
-<!-- This is used to show the line on the right edge of a list item in tablet ui -->
-<ImageView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/teaser_right_edge"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:src="@drawable/list_edge_tablet"/>
diff --git a/res/values-ldrtl/styles-ldrtl.xml b/res/values-ldrtl/styles-ldrtl.xml
index a6b45b1c9..675732987 100644
--- a/res/values-ldrtl/styles-ldrtl.xml
+++ b/res/values-ldrtl/styles-ldrtl.xml
@@ -370,19 +370,14 @@
<item name="android:layout_marginStart">@dimen/quoted_text_checkbox_margin_offset</item>
</style>
- <style name="FolderTeaserLabelMarginStyle">
- <item name="android:layout_marginStart">@dimen/folder_teaser_label_start_padding</item>
- <item name="android:layout_marginEnd">@dimen/folder_teaser_label_end_padding</item>
- </style>
-
- <style name="FolderTeaserMarginStartStyle">
- <item name="android:layout_marginStart">@dimen/folder_teaser_start_padding</item>
- </style>
-
<style name="FolderTeaserMarginEndStyle">
<item name="android:layout_marginEnd">@dimen/folder_teaser_end_padding</item>
</style>
+ <style name="ConversationListDividerStyleIndented" parent="ConversationListDividerStyle">
+ <item name="android:layout_marginStart">@dimen/folder_teaser_start_margin</item>
+ </style>
+
<style name="ArrowStyle">
<item name="android:layout_marginStart">@dimen/teaser_arrow_margin_start</item>
<item name="android:layout_marginEnd">@dimen/teaser_arrow_margin_end</item>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index ffb2939c5..254392eaa 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -136,13 +136,10 @@
<color name="message_header_background_color">@android:color/white</color>
<!-- The color of the section name text in the folder teaser -->
- <color name="folder_teaser_main_text">#212121</color>
+ <color name="folder_teaser_main_text">@color/text_color_black</color>
+ <color name="folder_teaser_sub_text">@color/text_color_grey</color>
<!-- The color of the icon background in the teaser -->
<color name="folder_teaser_icon_background">#eeeeee</color>
- <!-- The color of the senders text in the teaser -->
- <color name="folder_teaser_senders_text">#757575</color>
- <!-- The color of the count text in the teaser -->
- <color name="folder_teaser_count_text">@android:color/black</color>
<color name="vacation_responder_foreground">@android:color/white</color>
<color name="vacation_responder_background">#ffe9e9e9</color>
diff --git a/res/values/dimen.xml b/res/values/dimen.xml
index e8496497d..55af92a01 100644
--- a/res/values/dimen.xml
+++ b/res/values/dimen.xml
@@ -128,7 +128,10 @@
<dimen name="recipient_summary_margin">16dip</dimen>
<!-- Minimum width of the folder teaser count TextView -->
- <dimen name="folder_teaser_count_textview_minwidth">68dp</dimen>
+ <dimen name="folder_teaser_item_height">56dp</dimen>
+ <dimen name="folder_teaser_count_textview_min_width">48dp</dimen>
+ <dimen name="folder_teaser_start_margin">72dp</dimen>
+ <dimen name="folder_teaser_end_padding">16dp</dimen>
<dimen name="compose_attachment_text_padding">8dip</dimen>
@@ -184,12 +187,6 @@
<dimen name="compose_attachment_tile_text_end_padding">4dip</dimen>
- <dimen name="folder_teaser_start_padding">24dp</dimen>
- <dimen name="folder_teaser_end_padding">16dp</dimen>
-
- <dimen name="folder_teaser_label_start_padding">24dp</dimen>
- <dimen name="folder_teaser_label_end_padding">16dp</dimen>
-
<dimen name="teaser_arrow_margin_start">16dip</dimen>
<dimen name="teaser_arrow_margin_end">12dip</dimen>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 67af422b0..de6ef0c17 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -921,7 +921,7 @@
<string name="turn_auto_sync_on_dialog_confirm_btn">Turn on</string>
<!-- Button in conversation list to show more folders [CHAR LIMIT=50] -->
- <string name="show_n_more_folders">Show <xliff:g id="number">%1$s</xliff:g> more folders</string>
+ <string name="show_n_more_folders">Show <xliff:g id="number">%1$s</xliff:g> folders</string>
<!-- Button in conversation list to hide folders [CHAR LIMIT=50] -->
<string name="hide_folders">Hide folders</string>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index c195ddaae..61cda6838 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -915,6 +915,16 @@
<style name="ConversationListSpaciousStarStyle">
<item name="android:layout_marginRight">@dimen/conv_list_spacious_star_padding_end</item>
</style>
+
+ <style name="ConversationListDividerStyle">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">@dimen/divider_height</item>
+ <item name="android:background">@color/conversation_list_divider_color</item>
+ </style>
+
+ <style name="ConversationListDividerStyleIndented" parent="ConversationListDividerStyle">
+ <item name="android:layout_marginLeft">@dimen/folder_teaser_start_margin</item>
+ </style>
<!-- END Conversation list styles -->
<style name="BadgeTextStyle">
@@ -927,13 +937,11 @@
<item name="android:paddingLeft">@dimen/custom_from_inner_padding</item>
</style>
- <style name="FolderTeaserLabelMarginStyle">
- <item name="android:layout_marginLeft">@dimen/folder_teaser_label_start_padding</item>
- <item name="android:layout_marginRight">@dimen/folder_teaser_label_end_padding</item>
- </style>
-
- <style name="FolderTeaserMarginStartStyle">
- <item name="android:layout_marginLeft">@dimen/folder_teaser_start_padding</item>
+ <style name="FolderTeaserCountTextStyle">
+ <item name="android:gravity">center_vertical|end</item>
+ <item name="android:minWidth">@dimen/folder_teaser_count_textview_min_width</item>
+ <item name="android:textColor">@color/folder_teaser_sub_text</item>
+ <item name="android:textSize">14sp</item>
</style>
<style name="FolderTeaserMarginEndStyle">