Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!--
     18     TODO: Use localizable string resources instead of hard-coded strings
     19     once Search Manager is enhanced to allow them.
     20 -->
     21 <searchable xmlns:android="http://schemas.android.com/apk/res/android"
     22     android:icon="@drawable/ic_tab_contacts"
     23     android:label="@string/contactsList"
     24     android:hint="@string/searchHint"
     25     android:searchMode="queryRewriteFromText"
     26 
     27     android:includeInGlobalSearch="true"
     28     android:queryAfterZeroResults="true"
     29     android:searchSuggestAuthority="com.android.contacts"
     30     android:searchSuggestIntentAction="android.provider.Contacts.SEARCH_SUGGESTION_CLICKED"
     31     android:searchSuggestIntentData="content://com.android.contacts/contacts/lookup"
     32     android:searchSettingsDescription="@string/search_settings_description"
     33 >
     34 
     35     <!-- allow green action key for search-bar and per-suggestion clicks -->
     36     <actionkey
     37         android:keycode="KEYCODE_CALL"
     38         android:queryActionMsg="call"
     39         android:suggestActionMsg="call"
     40     />
     41 
     42 </searchable>
     43