summaryrefslogtreecommitdiffstats
path: root/res/menu
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2014-07-22 16:04:52 -0700
committerBrian Attwell <brianattwell@google.com>2014-07-23 18:17:32 +0000
commit81cc3b3d09d9296e521ac3454ad01c6b6c2ba71b (patch)
treec2adb270b83008a30ac036bc13fc49f4ac423a0e /res/menu
parent333091ae754ddfc25714c14b9b89534be24379f9 (diff)
downloadpackages_apps_Contacts-81cc3b3d09d9296e521ac3454ad01c6b6c2ba71b.tar.gz
packages_apps_Contacts-81cc3b3d09d9296e521ac3454ad01c6b6c2ba71b.tar.bz2
packages_apps_Contacts-81cc3b3d09d9296e521ac3454ad01c6b6c2ba71b.zip
Contact picker: add search icon & hide searchview
Hide/unhide the SearchView when you click a seach menu item. This is the first and more important step for b/16190113. In a later CL, I might remove the SearchView and replace it with the custom actionbar view created by dialer & used in PeopleActivity. Also merged JoinContactActivity into ContactSelectionActivity. Bug: 16190113 Change-Id: I04bf7d22dffbf7f104362b17c9064cb386a01abe
Diffstat (limited to 'res/menu')
-rw-r--r--res/menu/search_menu.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/res/menu/search_menu.xml b/res/menu/search_menu.xml
new file mode 100644
index 000000000..355442ed9
--- /dev/null
+++ b/res/menu/search_menu.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 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.
+-->
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:id="@+id/menu_search"
+ android:icon="@drawable/ic_ab_search"
+ android:title="@string/menu_search"
+ android:showAsAction="always" />
+</menu>