• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2009, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<!-- The attributes below configure how the search results will work:
21 - the 'label' points to a short description used when searching within the application if
22   'badge mode' is used as specified with android:searchMode="useLabelAsBadge" (which it is not for
23    this application).
24 - the 'searchSettingsDescription' points to a string that will be displayed underneath the
25   name of this application in the search settings to describe what content will be searched.
26 - 'includeInGlobalSearch' will include this app's search suggestions in Quick Search Box.
27 - 'searchSuggestAuthority' specifies the authority matching the authority of the
28   "DictionaryProvider" specified in the manifest.  This means the DictionaryProvider will be
29   queried for search suggestions.
30 - 'searchSuggestIntentAction' the default intent action used in the intent that is launched based
31   on a user cilcking on a search suggestion.  This saves us from manually having to fill in the
32   SUGGEST_COLUMN_INTENT_ACTION column for each suggestion returned by the provider.
33 -->
34<searchable xmlns:android="http://schemas.android.com/apk/res/android"
35        android:label="@string/search_label"
36        android:searchSettingsDescription="@string/settings_description"
37        android:includeInGlobalSearch="true"
38        android:searchSuggestAuthority="dictionary"
39        android:searchSuggestIntentAction="android.intent.action.VIEW">
40</searchable>
41