summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:21 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:21 -0800
commit7aa0e4cb91c869108238733ca107d18ccb888df7 (patch)
tree2b3963914d702856bcc0e9e254af6c56af60a6b5 /res/xml
parentcefa28cded1cd8d1af1a27ee934aedc65394b8dd (diff)
downloadpackages_apps_Contacts-7aa0e4cb91c869108238733ca107d18ccb888df7.tar.gz
packages_apps_Contacts-7aa0e4cb91c869108238733ca107d18ccb888df7.tar.bz2
packages_apps_Contacts-7aa0e4cb91c869108238733ca107d18ccb888df7.zip
auto import from //depot/cupcake/@135843
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/searchable.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/res/xml/searchable.xml b/res/xml/searchable.xml
new file mode 100644
index 000000000..cd9e6d6a1
--- /dev/null
+++ b/res/xml/searchable.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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.
+-->
+
+<!--
+ TODO: Use localizable string resources instead of hard-coded strings
+ once Search Manager is enhanced to allow them.
+-->
+<searchable xmlns:android="http://schemas.android.com/apk/res/android"
+ android:icon="@drawable/ic_tab_contacts"
+ android:label="@string/contactsList"
+ android:hint="@string/searchHint"
+ android:searchMode="queryRewriteFromText"
+
+ android:searchSuggestAuthority="contacts"
+ android:searchSuggestIntentAction="android.provider.Contacts.SEARCH_SUGGESTION_CLICKED"
+ android:searchSuggestIntentData="content://contacts/people"
+>
+
+ <!-- allow green action key for search-bar and per-suggestion clicks -->
+ <actionkey
+ android:keycode="KEYCODE_CALL"
+ android:queryActionMsg="call"
+ android:suggestActionMsg="call"
+ />
+
+</searchable>