diff options
author | blong <blong@codeaurora.org> | 2014-09-02 17:10:35 +0800 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2014-11-13 17:47:21 -0800 |
commit | 5be55018af32a796971c68b2852d08eac3e5f76c (patch) | |
tree | 4623cdfdd3fc4fef18571aff3a3a5ec79c6e480c /res | |
parent | a8346b50a3e4d6dd4e861d50c3769ca07b2d78cf (diff) | |
download | android_packages_apps_Dialer-5be55018af32a796971c68b2852d08eac3e5f76c.tar.gz android_packages_apps_Dialer-5be55018af32a796971c68b2852d08eac3e5f76c.tar.bz2 android_packages_apps_Dialer-5be55018af32a796971c68b2852d08eac3e5f76c.zip |
Add call log search in dialer
- add a menu to support search call log by name and number in
the calllog screen
Change-Id: I80c85a9bdea962296ea39dab7ce689df06e8159e
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/custom_action_bar.xml | 50 | ||||
-rw-r--r-- | res/menu/call_log_options.xml | 7 | ||||
-rw-r--r-- | res/values-zh-rCN/strings.xml | 1 | ||||
-rw-r--r-- | res/values/strings.xml | 1 |
4 files changed, 58 insertions, 1 deletions
diff --git a/res/layout/custom_action_bar.xml b/res/layout/custom_action_bar.xml new file mode 100644 index 000000000..3856f1719 --- /dev/null +++ b/res/layout/custom_action_bar.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2014, 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. + --> + +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="0dip" + android:layout_height="0dip" > + + <!-- To prevent the search view from getting the initial focus. --> + <View + android:focusable="true" + android:focusableInTouchMode="true" + android:layout_width="1px" + android:layout_height="1px" > + <requestFocus /> + </View> + <SearchView + android:id="@+id/search_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:iconifiedByDefault="false" + android:inputType="textFilter" /> +</FrameLayout> diff --git a/res/menu/call_log_options.xml b/res/menu/call_log_options.xml index 50b1cad5b..f0cbdf142 100644 --- a/res/menu/call_log_options.xml +++ b/res/menu/call_log_options.xml @@ -15,8 +15,13 @@ --> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item + android:id="@+id/search_calllog" + android:title="@string/calllog_search_hint" + android:showAsAction="never" + android:orderInCategory="1"/> + <item android:id="@+id/delete_all" android:title="@string/recentCalls_deleteAll" android:showAsAction="never" - android:orderInCategory="1"/> + android:orderInCategory="2"/> </menu> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 3d37c44df..6aa370762 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -218,4 +218,5 @@ <string name="call_log_show_all_slots">"所有卡"</string> <string name="call_log_all_calls_header">"所有通话"</string> + <string name="calllog_search_hint">"搜索通话记录"</string> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 731436b20..012b5b1df 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -827,4 +827,5 @@ <string name="call_log_show_all_slots">All SIMs</string> <string name="call_log_all_calls_header">All calls</string> + <string name="calllog_search_hint">"Search call log"</string> </resources> |