summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorYu Jin <yujin@codeorara.com>2016-06-07 11:42:14 +0800
committerLinux Build Service Account <lnxbuild@localhost>2016-08-24 08:18:25 -0600
commit9a1add45054f6c01361969b5c0819aec886abd2a (patch)
tree412c1bf205e4da5e58eb0d150d6163f9116436df /res/layout
parent6aaab7cd5ad6b435ee1705ae76f7b066c4c537fd (diff)
downloadandroid_packages_apps_Dialer-9a1add45054f6c01361969b5c0819aec886abd2a.tar.gz
android_packages_apps_Dialer-9a1add45054f6c01361969b5c0819aec886abd2a.tar.bz2
android_packages_apps_Dialer-9a1add45054f6c01361969b5c0819aec886abd2a.zip
Refine Dialer UI and add call log search function.
Add call log search funtion: add a menu to support search call log by name and number in the calllog screen and support hightlight for search result. Refine empty call log, clear call log and clear dialog style. Refine call log spinner style. CRs-Fixed: 985466 Change-Id: I4bf729bd9b0b043b651792353545da9b33aafe58
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/empty_content_view.xml4
-rw-r--r--res/layout/msim_call_log_spinner.xml4
-rw-r--r--res/layout/msim_call_log_spinner_item.xml8
-rw-r--r--res/layout/search_action_bar.xml60
4 files changed, 71 insertions, 5 deletions
diff --git a/res/layout/empty_content_view.xml b/res/layout/empty_content_view.xml
index 97ac4c79c..9436d6706 100644
--- a/res/layout/empty_content_view.xml
+++ b/res/layout/empty_content_view.xml
@@ -26,8 +26,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal|top"
- android:textSize="@dimen/empty_list_message_text_size"
- android:textColor="@color/empty_list_text_color"
+ android:textSize="@dimen/empty_list_message_text_size_for_Marshmallow"
+ android:textColor="@color/no_call_log"
android:paddingRight="16dp"
android:paddingLeft="16dp"
android:paddingTop="8dp"
diff --git a/res/layout/msim_call_log_spinner.xml b/res/layout/msim_call_log_spinner.xml
index 1ae225e3c..5310acee1 100644
--- a/res/layout/msim_call_log_spinner.xml
+++ b/res/layout/msim_call_log_spinner.xml
@@ -37,12 +37,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<Spinner
android:id="@+id/filter_sub_spinner"
android:layout_width="0dip"
+ android:textSize="@dimen/call_log_spinner_text_size"
+ android:textColor="@color/list_all_call"
android:layout_height="@dimen/list_section_divider_min_height"
android:layout_weight="1"
android:layout_marginTop="5dip" />
<Spinner
android:id="@+id/filter_status_spinner"
android:layout_width="0dip"
+ android:textSize="@dimen/call_log_spinner_text_size"
+ android:textColor="@color/list_all_call"
android:layout_height="@dimen/list_section_divider_min_height"
android:layout_weight="2"
android:layout_marginTop="5dip" />
diff --git a/res/layout/msim_call_log_spinner_item.xml b/res/layout/msim_call_log_spinner_item.xml
index 4afb62aab..0b1bcf308 100644
--- a/res/layout/msim_call_log_spinner_item.xml
+++ b/res/layout/msim_call_log_spinner_item.xml
@@ -31,6 +31,8 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CallLogSpinnerStyle"
android:layout_width="match_parent"
- android:layout_height="40dip"
- android:paddingLeft="8dip"
- android:paddingRight="8dip" />
+ android:paddingTop="5dp"
+ android:layout_height="50dip"
+ android:paddingLeft="16dip"
+ android:paddingRight="12dip"
+ android:paddingBottom="8dp" />
diff --git a/res/layout/search_action_bar.xml b/res/layout/search_action_bar.xml
new file mode 100644
index 000000000..2953d72b0
--- /dev/null
+++ b/res/layout/search_action_bar.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of The Linux Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ -->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="0dip"
+ android:orientation="horizontal"
+ android:layout_height="0dip" >
+
+ <EditText
+ android:layout_weight="1"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:layout_width="0dp"
+ android:singleLine="true"
+ android:id="@+id/search_view"
+ android:background="@null"
+ android:textCursorDrawable="@drawable/color_cursor"
+ android:layout_height="match_parent"
+ android:hint="@string/calllog_search_hint"
+ android:cursorVisible="true"
+ android:textColorHint="@color/searchview_edittext"
+ android:textColor="@color/actionbar_icon_color"
+ android:inputType="textFilter" />
+ <ImageView
+ android:id="@+id/search_close_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/clear"
+ android:clickable="true"
+ android:contentDescription="@string/description_clear_search"
+ />
+</LinearLayout>