summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_arrow_back_24dp.pngbin0 -> 2977 bytes
-rw-r--r--res/drawable-hdpi/ic_close_24dp.pngbin0 -> 3033 bytes
-rw-r--r--res/drawable-hdpi/ic_history_24dp.pngbin0 -> 4068 bytes
-rw-r--r--res/drawable-hdpi/ic_history_holo_light.pngbin749 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_mic_24dp.pngbin0 -> 3243 bytes
-rw-r--r--res/drawable-mdpi/ic_arrow_back_24dp.pngbin0 -> 2884 bytes
-rw-r--r--res/drawable-mdpi/ic_close_24dp.pngbin0 -> 2937 bytes
-rw-r--r--res/drawable-mdpi/ic_history_24dp.pngbin0 -> 3480 bytes
-rw-r--r--res/drawable-mdpi/ic_history_holo_light.pngbin507 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_mic_24dp.pngbin0 -> 3029 bytes
-rw-r--r--res/drawable-xhdpi/ic_arrow_back_24dp.pngbin0 -> 3017 bytes
-rw-r--r--res/drawable-xhdpi/ic_close_24dp.pngbin0 -> 3141 bytes
-rw-r--r--res/drawable-xhdpi/ic_history_24dp.pngbin0 -> 4360 bytes
-rw-r--r--res/drawable-xhdpi/ic_history_holo_light.pngbin916 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/ic_mic_24dp.pngbin0 -> 3416 bytes
-rw-r--r--res/drawable-xxhdpi/ic_arrow_back_24dp.pngbin0 -> 3152 bytes
-rw-r--r--res/drawable-xxhdpi/ic_close_24dp.pngbin0 -> 3316 bytes
-rw-r--r--res/drawable-xxhdpi/ic_history_24dp.pngbin0 -> 5270 bytes
-rw-r--r--res/drawable-xxhdpi/ic_history_holo_light.pngbin2915 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/ic_mic_24dp.pngbin0 -> 3804 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_arrow_back_24dp.pngbin0 -> 3355 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_close_24dp.pngbin0 -> 3504 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_history_24dp.pngbin0 -> 6501 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_mic_24dp.pngbin0 -> 4215 bytes
-rw-r--r--res/drawable/action_bar_shadow.xml (renamed from res/values-sw600dp-land/dimen.xml)12
-rw-r--r--res/layout/conversation_list_empty_view.xml2
-rw-r--r--res/layout/folder_teaser_item.xml13
-rw-r--r--res/layout/mail_actionbar_searchview.xml49
-rw-r--r--res/layout/multi_folders_view.xml23
-rw-r--r--res/layout/nested_folder_teaser_view.xml2
-rw-r--r--res/layout/one_pane_activity.xml13
-rw-r--r--res/layout/search_suggestion_item.xml47
-rw-r--r--res/layout/search_suggestion_list.xml54
-rw-r--r--res/layout/toolbar_with_search.xml33
-rw-r--r--res/layout/two_pane_activity.xml87
-rw-r--r--res/layout/widget.xml37
-rw-r--r--res/menu-sw600dp-land/conversation_actions.xml3
-rw-r--r--res/menu-sw600dp-land/conversation_list_search_results_actions.xml3
-rw-r--r--res/menu/conversation_list_menu.xml3
-rw-r--r--res/menu/conversation_list_search_results_actions.xml3
-rw-r--r--res/values-ko/strings.xml6
-rw-r--r--res/values-ldrtl/styles-ldrtl.xml11
-rw-r--r--res/values-ru/strings.xml4
-rw-r--r--res/values-sw600dp/themes.xml2
-rw-r--r--res/values/colors.xml4
-rw-r--r--res/values/dimen.xml5
-rw-r--r--res/values/strings.xml8
-rw-r--r--res/values/styles.xml32
-rw-r--r--res/values/themes.xml7
-rw-r--r--res/xml/searchable.xml28
50 files changed, 346 insertions, 145 deletions
diff --git a/res/drawable-hdpi/ic_arrow_back_24dp.png b/res/drawable-hdpi/ic_arrow_back_24dp.png
new file mode 100644
index 000000000..9b5f436f6
--- /dev/null
+++ b/res/drawable-hdpi/ic_arrow_back_24dp.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_close_24dp.png b/res/drawable-hdpi/ic_close_24dp.png
new file mode 100644
index 000000000..33db9eef6
--- /dev/null
+++ b/res/drawable-hdpi/ic_close_24dp.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_history_24dp.png b/res/drawable-hdpi/ic_history_24dp.png
new file mode 100644
index 000000000..b93e92940
--- /dev/null
+++ b/res/drawable-hdpi/ic_history_24dp.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_history_holo_light.png b/res/drawable-hdpi/ic_history_holo_light.png
deleted file mode 100644
index d3feeac20..000000000
--- a/res/drawable-hdpi/ic_history_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_mic_24dp.png b/res/drawable-hdpi/ic_mic_24dp.png
new file mode 100644
index 000000000..143ccc43a
--- /dev/null
+++ b/res/drawable-hdpi/ic_mic_24dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_arrow_back_24dp.png b/res/drawable-mdpi/ic_arrow_back_24dp.png
new file mode 100644
index 000000000..3a5800d1e
--- /dev/null
+++ b/res/drawable-mdpi/ic_arrow_back_24dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_close_24dp.png b/res/drawable-mdpi/ic_close_24dp.png
new file mode 100644
index 000000000..bd39f9332
--- /dev/null
+++ b/res/drawable-mdpi/ic_close_24dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_history_24dp.png b/res/drawable-mdpi/ic_history_24dp.png
new file mode 100644
index 000000000..76b0a9178
--- /dev/null
+++ b/res/drawable-mdpi/ic_history_24dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_history_holo_light.png b/res/drawable-mdpi/ic_history_holo_light.png
deleted file mode 100644
index 2b6eec4f5..000000000
--- a/res/drawable-mdpi/ic_history_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_mic_24dp.png b/res/drawable-mdpi/ic_mic_24dp.png
new file mode 100644
index 000000000..81d0c21ad
--- /dev/null
+++ b/res/drawable-mdpi/ic_mic_24dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_arrow_back_24dp.png b/res/drawable-xhdpi/ic_arrow_back_24dp.png
new file mode 100644
index 000000000..73395b0ac
--- /dev/null
+++ b/res/drawable-xhdpi/ic_arrow_back_24dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_close_24dp.png b/res/drawable-xhdpi/ic_close_24dp.png
new file mode 100644
index 000000000..81efb7040
--- /dev/null
+++ b/res/drawable-xhdpi/ic_close_24dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_history_24dp.png b/res/drawable-xhdpi/ic_history_24dp.png
new file mode 100644
index 000000000..61c0bfe34
--- /dev/null
+++ b/res/drawable-xhdpi/ic_history_24dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_history_holo_light.png b/res/drawable-xhdpi/ic_history_holo_light.png
deleted file mode 100644
index 83d61fa68..000000000
--- a/res/drawable-xhdpi/ic_history_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/ic_mic_24dp.png b/res/drawable-xhdpi/ic_mic_24dp.png
new file mode 100644
index 000000000..1dcf56c4e
--- /dev/null
+++ b/res/drawable-xhdpi/ic_mic_24dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_arrow_back_24dp.png b/res/drawable-xxhdpi/ic_arrow_back_24dp.png
new file mode 100644
index 000000000..650351d06
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_arrow_back_24dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_close_24dp.png b/res/drawable-xxhdpi/ic_close_24dp.png
new file mode 100644
index 000000000..0924e29a2
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_close_24dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_history_24dp.png b/res/drawable-xxhdpi/ic_history_24dp.png
new file mode 100644
index 000000000..4fe0a7efe
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_history_24dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_history_holo_light.png b/res/drawable-xxhdpi/ic_history_holo_light.png
deleted file mode 100644
index b5e82bc69..000000000
--- a/res/drawable-xxhdpi/ic_history_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_mic_24dp.png b/res/drawable-xxhdpi/ic_mic_24dp.png
new file mode 100644
index 000000000..ce9890478
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_mic_24dp.png
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_arrow_back_24dp.png b/res/drawable-xxxhdpi/ic_arrow_back_24dp.png
new file mode 100644
index 000000000..8068c1b57
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_arrow_back_24dp.png
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_close_24dp.png b/res/drawable-xxxhdpi/ic_close_24dp.png
new file mode 100644
index 000000000..cb7a27ca8
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_close_24dp.png
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_history_24dp.png b/res/drawable-xxxhdpi/ic_history_24dp.png
new file mode 100644
index 000000000..420576b08
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_history_24dp.png
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_mic_24dp.png b/res/drawable-xxxhdpi/ic_mic_24dp.png
new file mode 100644
index 000000000..c586bb535
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_mic_24dp.png
Binary files differ
diff --git a/res/values-sw600dp-land/dimen.xml b/res/drawable/action_bar_shadow.xml
index 92359cbf0..32501171d 100644
--- a/res/values-sw600dp-land/dimen.xml
+++ b/res/drawable/action_bar_shadow.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright (C) 2012 Google Inc.
+ Copyright (C) 2014 Google Inc.
Licensed to The Android Open Source Project.
Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +15,10 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<resources>
- <dimen name="search_view_width">500dip</dimen>
-</resources>
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <gradient
+ android:angle="270"
+ android:startColor="#3D000000"
+ android:endColor="#00000000" />
+</shape>
diff --git a/res/layout/conversation_list_empty_view.xml b/res/layout/conversation_list_empty_view.xml
index 7c18fdf1b..cdb85b3f7 100644
--- a/res/layout/conversation_list_empty_view.xml
+++ b/res/layout/conversation_list_empty_view.xml
@@ -35,7 +35,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/empty_view_space"
android:fontFamily="sans-serif-light"
- android:textAlignment="center"
+ android:gravity="center"
android:textColor="#80000000"
android:textSize="@dimen/empty_view_text_size" />
diff --git a/res/layout/folder_teaser_item.xml b/res/layout/folder_teaser_item.xml
index f949d5d08..a435dc1d1 100644
--- a/res/layout/folder_teaser_item.xml
+++ b/res/layout/folder_teaser_item.xml
@@ -40,7 +40,8 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
- android:orientation="vertical">
+ android:orientation="vertical"
+ style="@style/FolderTeaserMarginEndStyle">
<TextView
android:id="@+id/folder_textView"
@@ -63,10 +64,16 @@
</LinearLayout>
<TextView
- android:id="@+id/count_textView"
+ android:id="@+id/unread_count_textView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- style="@style/FolderTeaserCountTextStyle" />
+ style="@style/FolderTeaserUnreadCountTextStyle" />
+
+ <TextView
+ android:id="@+id/unseen_count_textView"
+ android:layout_width="57sp"
+ android:layout_height="20sp"
+ style="@style/FolderTeaserUnseenCountTextStyle" />
</LinearLayout>
diff --git a/res/layout/mail_actionbar_searchview.xml b/res/layout/mail_actionbar_searchview.xml
index 730f1708a..8754b4ef6 100644
--- a/res/layout/mail_actionbar_searchview.xml
+++ b/res/layout/mail_actionbar_searchview.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright (C) 2011 Google Inc.
+ Copyright (C) 2014 Google Inc.
Licensed to The Android Open Source Project.
Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,12 +16,45 @@
limitations under the License.
-->
-<android.support.v7.widget.SearchView
+<com.android.mail.ui.MaterialSearchActionView
xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/search_layout"
- android:gravity="center_vertical"
- android:layout_height="match_parent"
+ android:id="@+id/search_actionbar_view"
android:layout_width="match_parent"
- android:hint="@string/search_hint"
- android:imeOptions="actionSearch"
- android:maxWidth="@dimen/search_view_width" />
+ android:layout_height="match_parent"
+ android:background="@android:color/white"
+ android:visibility="gone">
+
+ <ImageView
+ android:id="@+id/search_actionbar_back_button"
+ android:layout_width="@dimen/search_leading_button_width"
+ android:layout_height="match_parent"
+ android:background="?android:attr/selectableItemBackground"
+ android:src="@drawable/ic_arrow_back_24dp"
+ style="@style/SearchViewLeadingButton" />
+
+ <EditText
+ android:id="@+id/search_actionbar_query_text"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:background="@android:color/transparent"
+ android:gravity="center_vertical"
+ android:hint="@string/search_hint"
+ android:imeOptions="actionSearch|flagNoExtractUi"
+ android:inputType="text|textNoSuggestions"
+ android:singleLine="true"
+ android:textColor="@color/search_query_text"
+ android:textColorHint="@color/search_query_hint_text"
+ android:textSize="16sp" />
+
+ <ImageView
+ android:id="@+id/search_actionbar_ending_button"
+ android:layout_width="@dimen/search_ending_button_width"
+ android:layout_height="match_parent"
+ android:background="?android:attr/selectableItemBackground"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_mic_24dp" />
+
+</com.android.mail.ui.MaterialSearchActionView> \ No newline at end of file
diff --git a/res/layout/multi_folders_view.xml b/res/layout/multi_folders_view.xml
index ea49d2da2..f0b4a9428 100644
--- a/res/layout/multi_folders_view.xml
+++ b/res/layout/multi_folders_view.xml
@@ -19,19 +19,26 @@
<!-- Describes an individual toggleable folder entry to be displayed in a list of folders in
a folder selection UI. -->
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/folders"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="@dimen/single_folder_list_item_height"
+ android:layout_gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight">
<!-- Note: the checkbox is not focusable because the parent list item itself handles
the toggling -->
- <CheckBox android:id="@+id/checkbox"
- style="@style/FolderSelectionItemStyle"/>
+ <ImageView
+ android:id="@+id/folder_icon"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ style="@style/SingleFolderListIconStyle" />
- <View
- android:id="@+id/color_block"
- style="@style/FolderColorBoxStyle"/>
+ <CheckedTextView android:id="@+id/checkbox"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ style="@style/MultiFolderSelectionItemStyle"/>
-</FrameLayout>
+</LinearLayout>
diff --git a/res/layout/nested_folder_teaser_view.xml b/res/layout/nested_folder_teaser_view.xml
index 0f0e74745..a471aeb57 100644
--- a/res/layout/nested_folder_teaser_view.xml
+++ b/res/layout/nested_folder_teaser_view.xml
@@ -61,7 +61,7 @@
android:id="@+id/show_more_folders_count_textView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- style="@style/FolderTeaserCountTextStyle" />
+ style="@style/FolderTeaserUnreadCountTextStyle" />
</LinearLayout>
diff --git a/res/layout/one_pane_activity.xml b/res/layout/one_pane_activity.xml
index 478edb9a9..40072a2a8 100644
--- a/res/layout/one_pane_activity.xml
+++ b/res/layout/one_pane_activity.xml
@@ -16,7 +16,6 @@
-->
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -27,12 +26,8 @@
android:layout_height="match_parent"
android:orientation="vertical">
- <android.support.v7.widget.Toolbar
- android:id="@+id/mail_toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="?attr/colorPrimary"
- app:theme="?attr/actionBarTheme" />
+ <!-- Custom toolbar/search overlay -->
+ <include layout="@layout/toolbar_with_search" />
<FrameLayout
android:layout_width="match_parent"
@@ -47,6 +42,8 @@
<include layout="@layout/floating_actions" />
+ <include layout="@layout/search_suggestion_list" />
+
</FrameLayout>
</LinearLayout>
@@ -57,4 +54,4 @@
android:layout_height="match_parent"
android:layout_gravity="start" />
-</android.support.v4.widget.DrawerLayout>
+</android.support.v4.widget.DrawerLayout> \ No newline at end of file
diff --git a/res/layout/search_suggestion_item.xml b/res/layout/search_suggestion_item.xml
new file mode 100644
index 000000000..49b0256c9
--- /dev/null
+++ b/res/layout/search_suggestion_item.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/search_suggestion_height"
+ android:orientation="vertical">
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:paddingRight="16dp">
+
+ <ImageView
+ android:id="@+id/search_overlay_item_icon"
+ android:layout_width="@dimen/search_leading_button_width"
+ android:layout_height="match_parent"
+ style="@style/SearchViewLeadingButton" />
+
+ <TextView
+ android:id="@+id/search_overlay_item_text"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:layout_weight="1"
+ android:textColor="@color/search_suggestion_item_text"
+ android:textSize="16sp" />
+
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout/search_suggestion_list.xml b/res/layout/search_suggestion_list.xml
new file mode 100644
index 000000000..4bd40f022
--- /dev/null
+++ b/res/layout/search_suggestion_list.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.android.mail.ui.MaterialSearchSuggestionsList
+ android:id="@+id/search_overlay_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:visibility="gone">
+
+ <ListView
+ android:id="@+id/search_overlay_suggestion_list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@android:color/white"
+ android:divider="@null" />
+
+ <!-- Scrim to fade the background -->
+ <View
+ android:id="@+id/search_overlay_scrim"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:background="#33000000" />
+
+ </com.android.mail.ui.MaterialSearchSuggestionsList>
+
+ <!-- Search bar shadow -->
+ <View
+ android:id="@+id/search_actionbar_shadow"
+ android:layout_width="match_parent"
+ android:layout_height="7dp"
+ android:background="@drawable/action_bar_shadow"
+ android:visibility="gone" />
+</FrameLayout> \ No newline at end of file
diff --git a/res/layout/toolbar_with_search.xml b/res/layout/toolbar_with_search.xml
new file mode 100644
index 000000000..4e5abda14
--- /dev/null
+++ b/res/layout/toolbar_with_search.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize">
+
+ <android.support.v7.widget.Toolbar
+ android:id="@+id/mail_toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorPrimary"
+ app:theme="?attr/actionBarTheme" />
+
+ <include layout="@layout/mail_actionbar_searchview" />
+
+</FrameLayout> \ No newline at end of file
diff --git a/res/layout/two_pane_activity.xml b/res/layout/two_pane_activity.xml
index 2f8f6db6e..eb194c96c 100644
--- a/res/layout/two_pane_activity.xml
+++ b/res/layout/two_pane_activity.xml
@@ -15,49 +15,68 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.mail.ui.TwoPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/two_pane_activity"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/tablet_background_gray">
+ android:orientation="vertical">
+ <!-- Custom toolbar/search overlay -->
+ <include layout="@layout/toolbar_with_search" />
+
+ <!-- Main content -->
<FrameLayout
- android:id="@+id/drawer"
- android:layout_width="@dimen/two_pane_drawer_width_open"
- android:layout_height="match_parent"
- android:layout_gravity="left">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
- <include layout="@layout/drawer_fragment"
+ <com.android.mail.ui.TwoPaneLayout
+ android:id="@+id/two_pane_activity"
android:layout_width="match_parent"
- android:layout_height="match_parent" />
+ android:layout_height="match_parent"
+ android:background="@color/tablet_background_gray">
- </FrameLayout>
+ <FrameLayout
+ android:id="@+id/drawer"
+ android:layout_width="@dimen/two_pane_drawer_width_open"
+ android:layout_height="match_parent"
+ android:layout_gravity="left">
- <FrameLayout
- android:id="@+id/conversation_list_pane"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="left"
- style="@style/TwoPaneConversationList" />
-
- <com.android.mail.ui.ConversationViewFrame
- android:id="@+id/conversation_pane"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="left">
-
- <include layout="@layout/conversation_pager"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
+ <include layout="@layout/drawer_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/conversation_list_pane"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="left"
+ style="@style/TwoPaneConversationList" />
- </com.android.mail.ui.ConversationViewFrame>
+ <com.android.mail.ui.ConversationViewFrame
+ android:id="@+id/conversation_pane"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="left">
- <com.android.mail.ui.ConversationViewFrame
- android:id="@+id/miscellaneous_pane"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="left" />
+ <include layout="@layout/conversation_pager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
- <include layout="@layout/floating_actions" />
+ </com.android.mail.ui.ConversationViewFrame>
+
+ <com.android.mail.ui.ConversationViewFrame
+ android:id="@+id/miscellaneous_pane"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="left" />
+
+ <include layout="@layout/floating_actions" />
+
+ </com.android.mail.ui.TwoPaneLayout>
+
+ <include layout="@layout/search_suggestion_list" />
+
+ </FrameLayout>
-</com.android.mail.ui.TwoPaneLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout/widget.xml b/res/layout/widget.xml
index cd6897d82..357050ed6 100644
--- a/res/layout/widget.xml
+++ b/res/layout/widget.xml
@@ -26,34 +26,31 @@
android:layout_marginBottom="@dimen/widget_margin_bottom"
android:orientation="vertical">
- <RelativeLayout
+ <LinearLayout
android:id="@+id/widget_header"
android:layout_width="match_parent"
android:layout_height="48dp"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:background="@color/widget_header_bg_color">
+ android:background="@color/widget_header_bg_color"
+ style="@style/WidgetHeaderStartMargin">
+ <TextView
+ android:id="@+id/widget_folder"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:freezesText="true"
+ android:textAlignment="viewStart"
+ android:includeFontPadding="false"
+ style="@style/WidgetTitle"/>
<ImageButton
android:id="@+id/widget_compose"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="56dp"
+ android:layout_height="match_parent"
+ android:scaleType="center"
android:src="@drawable/ic_widget_compose_wht_24dp"
android:background="?android:attr/selectableItemBackground"
- android:paddingLeft="16dp"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
android:contentDescription="@string/compose" />
- <TextView
- android:id="@+id/widget_folder"
- style="@style/WidgetTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:freezesText="true"
- android:layout_toLeftOf="@id/widget_compose"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:includeFontPadding="false" />
- </RelativeLayout>
+ </LinearLayout>
<LinearLayout
android:id="@+id/widget_configuration"
diff --git a/res/menu-sw600dp-land/conversation_actions.xml b/res/menu-sw600dp-land/conversation_actions.xml
index 78325b8ce..af888ddde 100644
--- a/res/menu-sw600dp-land/conversation_actions.xml
+++ b/res/menu-sw600dp-land/conversation_actions.xml
@@ -22,8 +22,7 @@
<item android:id="@+id/search"
android:title="@string/menu_search"
app:showAsAction="always|collapseActionView"
- android:icon="@drawable/ic_menu_search"
- app:actionLayout="@layout/mail_actionbar_searchview" />
+ android:icon="@drawable/ic_menu_search" />
<item
android:id="@+id/archive"
diff --git a/res/menu-sw600dp-land/conversation_list_search_results_actions.xml b/res/menu-sw600dp-land/conversation_list_search_results_actions.xml
index 1b784bc56..1e465722d 100644
--- a/res/menu-sw600dp-land/conversation_list_search_results_actions.xml
+++ b/res/menu-sw600dp-land/conversation_list_search_results_actions.xml
@@ -21,8 +21,7 @@
<item android:id="@+id/search"
android:title="@string/menu_search"
app:showAsAction="always|collapseActionView"
- android:icon="@drawable/ic_menu_search"
- app:actionLayout="@layout/mail_actionbar_searchview" />
+ android:icon="@drawable/ic_menu_search" />
<item
android:id="@+id/delete"
diff --git a/res/menu/conversation_list_menu.xml b/res/menu/conversation_list_menu.xml
index 05568bc0d..8b7c59377 100644
--- a/res/menu/conversation_list_menu.xml
+++ b/res/menu/conversation_list_menu.xml
@@ -35,8 +35,7 @@
that supports FOLDER_SERVER_SEARCH -->
<item android:id="@+id/search" android:title="@string/menu_search"
app:showAsAction="ifRoom|collapseActionView"
- android:icon="@drawable/ic_menu_search"
- app:actionLayout="@layout/mail_actionbar_searchview" />
+ android:icon="@drawable/ic_menu_search" />
<!-- These invisible menu item are used to enable keyboard shortcuts -->
<item
diff --git a/res/menu/conversation_list_search_results_actions.xml b/res/menu/conversation_list_search_results_actions.xml
index 6708c8366..1205e9066 100644
--- a/res/menu/conversation_list_search_results_actions.xml
+++ b/res/menu/conversation_list_search_results_actions.xml
@@ -22,8 +22,7 @@
<item android:id="@+id/search"
android:title="@string/menu_search"
app:showAsAction="ifRoom|collapseActionView"
- android:icon="@drawable/ic_menu_search"
- app:actionLayout="@layout/mail_actionbar_searchview" />
+ android:icon="@drawable/ic_menu_search" />
<!-- This invisible menu item is used to map CTRL-C to the compose action -->
<item
diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml
index e3a438081..5ef39aa68 100644
--- a/res/values-ko/strings.xml
+++ b/res/values-ko/strings.xml
@@ -450,10 +450,10 @@
<string name="reply_choice_ok" msgid="7881073621845053152">"확인"</string>
<string name="reply_choice_hehe" msgid="6054314968043050748">"하하"</string>
<string name="reply_choice_thanks" msgid="4978961954288364694">"감사합니다"</string>
- <string name="reply_choice_i_agree" msgid="2496652737796884298">"동의"</string>
+ <string name="reply_choice_i_agree" msgid="2496652737796884298">"동의합니다"</string>
<string name="reply_choice_nice" msgid="4465894941302838676">"좋아요"</string>
- <string name="reply_on_my_way" msgid="5645003971107444269">"가는 중입니다."</string>
- <string name="reply_choice_later" msgid="4629219072859486413">"나중에 연락드리겠습니다."</string>
+ <string name="reply_on_my_way" msgid="5645003971107444269">"가는 중입니다"</string>
+ <string name="reply_choice_later" msgid="4629219072859486413">"나중에 연락드리겠습니다"</string>
<string name="reply_choice_smiling_face" msgid="1772253938506548631">":)"</string>
<string name="reply_choice_frowning_face" msgid="6260338807944002651">":("</string>
<string name="preference_header_action_confirmations" msgid="3922674681156121948">"액션 확인"</string>
diff --git a/res/values-ldrtl/styles-ldrtl.xml b/res/values-ldrtl/styles-ldrtl.xml
index 8b2beadbe..a963ab5e3 100644
--- a/res/values-ldrtl/styles-ldrtl.xml
+++ b/res/values-ldrtl/styles-ldrtl.xml
@@ -230,6 +230,10 @@
<item name="android:paddingEnd">@dimen/widget_attachment_padding_end</item>
</style>
+ <style name="WidgetHeaderStartMargin">
+ <item name="android:paddingStart">16dp</item>
+ </style>
+
<!-- START Conversation list styles -->
<style name="ConversationListContactImageStyle">
<item name="android:layout_marginEnd">@dimen/conv_list_contact_image_padding_end</item>
@@ -391,6 +395,13 @@
<item name="android:paddingEnd">@dimen/undo_icon_padding_end</item>
</style>
+ <style name="SearchViewLeadingButton">
+ <item name="android:layout_gravity">center_vertical</item>
+ <item name="android:paddingStart">16dp</item>
+ <item name="android:paddingEnd">32dp</item>
+ <item name="android:scaleType">center</item>
+ </style>
+
<style name="AccountItemNameStyle">
<item name="android:paddingStart">@dimen/account_item_name_start_padding</item>
<item name="android:paddingEnd">@dimen/account_item_name_end_padding</item>
diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml
index 6bb7d2861..72f1cff7e 100644
--- a/res/values-ru/strings.xml
+++ b/res/values-ru/strings.xml
@@ -197,8 +197,8 @@
<item quantity="other" msgid="9218674052779504277">"Цепочек, помеченных как фишинг: &lt;b&gt;<xliff:g id="COUNT">%1$d</xliff:g>&lt;/b&gt;."</item>
</plurals>
<plurals name="conversation_archived">
- <item quantity="one" msgid="4127890884907503696">"Архивировано (&lt;b&gt;<xliff:g id="COUNT">%1$d</xliff:g>&lt;/b&gt;)"</item>
- <item quantity="other" msgid="7789480176789922968">"Архивировано (&lt;b&gt;<xliff:g id="COUNT">%1$d</xliff:g>&lt;/b&gt;)"</item>
+ <item quantity="one" msgid="4127890884907503696">"Архивировано: &lt;b&gt;<xliff:g id="COUNT">%1$d</xliff:g>&lt;/b&gt;."</item>
+ <item quantity="other" msgid="7789480176789922968">"Архивировано: &lt;b&gt;<xliff:g id="COUNT">%1$d</xliff:g>&lt;/b&gt;."</item>
</plurals>
<plurals name="conversation_deleted">
<item quantity="one" msgid="5591889079235938982">"Удалено цепочек: &lt;b&gt;<xliff:g id="COUNT">%1$d</xliff:g>&lt;/b&gt;."</item>
diff --git a/res/values-sw600dp/themes.xml b/res/values-sw600dp/themes.xml
index 4909a9d81..d6babb92f 100644
--- a/res/values-sw600dp/themes.xml
+++ b/res/values-sw600dp/themes.xml
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <style name="MailActivityTheme" parent="@style/UnifiedEmailTheme.Appcompat" />
-
<!-- todo - comment out when theme exists -->
<!--<style name="ShortcutWidgetTheme" parent="@style/Theme.Appcompat.Light.Dialog.MinWidth">-->
<!--<item name="actionOverflowButtonStyle">@style/ActionBarOverflowButtonStyle</item>-->
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 42014d0da..2095655f5 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -103,6 +103,9 @@
<color name="notification_icon_gmail_red">#da4336</color>
<!-- Search colors -->
+ <color name="search_query_hint_text">@color/light_gray</color>
+ <color name="search_query_text">@color/text_color_black</color>
+ <color name="search_suggestion_item_text">@color/text_color_grey</color>
<color name="search_banner_bg">#f6f6f6</color>
<color name="search_banner_text">@color/text_color_grey</color>
@@ -178,5 +181,4 @@
<color name="snack_bar_action_text_color">#f4b400</color>
<color name="conversation_item_blue_background">#e5f8fb</color>
- <color name="conversation_list_divider_color">#b2b2b2</color>
</resources>
diff --git a/res/values/dimen.xml b/res/values/dimen.xml
index 925c23099..6b9b87ca7 100644
--- a/res/values/dimen.xml
+++ b/res/values/dimen.xml
@@ -112,7 +112,6 @@
<dimen name="widget_margin_left">0dip</dimen>
<dimen name="widget_margin_right">0dip</dimen>
<dimen name="widget_margin_bottom">0dip</dimen>
- <dimen name="search_view_width">400dip</dimen>
<dimen name="wait_padding">16dp</dimen>
<integer name="chips_max_lines">2</integer>
<dimen name="tile_letter_font_size">24dp</dimen>
@@ -152,6 +151,9 @@
<dimen name="widget_senders_padding_end">16dip</dimen>
<dimen name="widget_attachment_padding_end">8dp</dimen>
+ <dimen name="search_leading_button_width">72dp</dimen>
+ <dimen name="search_ending_button_width">56dp</dimen>
+ <dimen name="search_suggestion_height">56dp</dimen>
<dimen name="search_results_padding">16dp</dimen>
<dimen name="search_banner_text_size">12sp</dimen>
@@ -174,7 +176,6 @@
<dimen name="conv_list_wide_personal_indicator_padding_end">8dip</dimen>
<dimen name="conv_list_wide_star_padding_start">32dip</dimen>
<dimen name="conv_list_wide_color_block_padding_end">64dip</dimen>
- <dimen name="conv_list_divider_inset">72dp</dimen>
<dimen name="conv_list_spacious_padding_start">22dip</dimen>
<dimen name="conv_list_spacious_padding_end">16dip</dimen>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 4bcf4cd8a..0f8baecb7 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -19,10 +19,6 @@
<!-- Names of packages and authorities that are common to all apps
and read from resources -->
- <!-- Name of the search suggestions authority that looks up recent suggestions. This
- needs to be modified in AndroidManifest.xml and res/xml/searchable.xml as well. -->
- <string name="suggestions_authority" translatable="false">com.android.mail.suggestionsprovider</string>
-
<!-- Layout tests strings -->
<string name="mock_content_provider" translatable="false">Mock Content Provider</string>
<string name="conversation_content_provider" translatable="false">Conversation Content Provider</string>
@@ -607,9 +603,11 @@
<!-- Title of the search dialog -->
<string name="search_title" translatable="false">Unified Email</string>
<!-- Shown in light gray in the Search box when no text has been entered [CHAR LIMIT=20]-->
- <string name="search_hint">Search mail</string>
+ <string name="search_hint">Search</string>
<!-- Search Results: Text for status of the search when the results are completely loaded [CHAR LIMIT=10] -->
<string name="search_results_loaded"><xliff:g id="searchCount">%1$d</xliff:g></string>
+ <!-- Voice search is not supported on this device [CHAR LIMIT=100] -->
+ <string name="voice_search_not_supported">Voice search is not supported on this device.</string>
<!-- Shown in conversation list footer when application cannot make a connection [CHAR LIMIT=20]-->
<string name="network_error">No connection</string>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 04c3f4f44..379f33e9a 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -425,6 +425,11 @@
<item name="android:padding">@dimen/single_folder_list_item_padding</item>
</style>
+ <style name="MultiFolderSelectionItemStyle" parent="SingleFolderSelectionItemStyle">
+ <item name="android:background">?android:attr/selectableItemBackground</item>
+ <item name="android:checkMark">?android:attr/listChoiceIndicatorMultiple</item>
+ </style>
+
<!-- Widget styles -->
<style name="WidgetTitle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
<item name="android:singleLine">true</item>
@@ -811,6 +816,10 @@
<item name="android:paddingRight">@dimen/widget_attachment_padding_end</item>
</style>
+ <style name="WidgetHeaderStartMargin">
+ <item name="android:paddingLeft">16dp</item>
+ </style>
+
<style name="SearchTextStyle">
<item name="android:textColor">@color/search_banner_text</item>
<item name="android:textSize">@dimen/search_banner_text_size</item>
@@ -927,7 +936,7 @@
<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>
+ <item name="android:background">@color/divider_color</item>
</style>
<style name="ConversationListDividerStyleIndented" parent="ConversationListDividerStyle">
@@ -945,13 +954,22 @@
<item name="android:paddingLeft">@dimen/custom_from_inner_padding</item>
</style>
- <style name="FolderTeaserCountTextStyle">
+ <style name="FolderTeaserUnreadCountTextStyle">
<item name="android:gravity">center_vertical|end</item>
<item name="android:minWidth">@dimen/folder_teaser_count_textview_min_width</item>
+ <item name="android:visibility">gone</item>
<item name="android:textColor">@color/folder_teaser_sub_text</item>
<item name="android:textSize">14sp</item>
</style>
+ <style name="FolderTeaserUnseenCountTextStyle">
+ <item name="android:layout_gravity">center_vertical</item>
+ <item name="android:gravity">center</item>
+ <item name="android:visibility">gone</item>
+ <item name="android:textColor">@android:color/white</item>
+ <item name="android:textSize">14sp</item>
+ </style>
+
<style name="FolderTeaserMarginEndStyle">
<item name="android:layout_marginRight">@dimen/folder_teaser_end_padding</item>
</style>
@@ -970,11 +988,11 @@
<item name="android:paddingRight">@dimen/undo_icon_padding_end</item>
</style>
- <style name="Theme.AppCompat.Translucent">
- <item name="android:windowBackground">@android:color/transparent</item>
- <item name="android:colorBackgroundCacheHint">@null</item>
- <item name="android:windowIsTranslucent">true</item>
- <item name="android:windowAnimationStyle">@android:style/Animation</item>
+ <style name="SearchViewLeadingButton">
+ <item name="android:layout_gravity">center_vertical</item>
+ <item name="android:paddingLeft">16dp</item>
+ <item name="android:paddingRight">32dp</item>
+ <item name="android:scaleType">center</item>
</style>
<style name="AccountItemNameStyle">
diff --git a/res/values/themes.xml b/res/values/themes.xml
index c2edf9f5e..7fd779e47 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -45,4 +45,11 @@
<item name="android:windowNoDisplay">true</item>
</style>
+ <style name="Theme.AppCompat.Translucent">
+ <item name="android:windowBackground">@android:color/transparent</item>
+ <item name="android:colorBackgroundCacheHint">@null</item>
+ <item name="android:windowIsTranslucent">true</item>
+ <item name="android:windowAnimationStyle">@android:style/Animation</item>
+ </style>
+
</resources> \ No newline at end of file
diff --git a/res/xml/searchable.xml b/res/xml/searchable.xml
deleted file mode 100644
index 5607f16cb..000000000
--- a/res/xml/searchable.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2012 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.
--->
-
-<!-- Override the searchSuggestAuthority in the inheriting applications to point to the
- correct package name.-->
-<searchable xmlns:android="http://schemas.android.com/apk/res/android"
- android:label="@string/search_title"
- android:hint="@string/search_hint"
- android:icon="@drawable/ic_menu_search"
- android:searchSuggestIntentAction="android.intent.action.SEARCH"
- android:searchSuggestAuthority="com.android.mail"
- android:imeOptions="actionSearch"
- android:voiceSearchMode="showVoiceSearchButton|launchRecognizer" />