diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 5dc3b4f80f38c0d48601f66c2c0e551474a7f8ad (patch) | |
tree | f2f18b315ac3baf7b94334ec2c431d03c81e00f0 /res/xml | |
download | packages_apps_Contacts-5dc3b4f80f38c0d48601f66c2c0e551474a7f8ad.tar.gz packages_apps_Contacts-5dc3b4f80f38c0d48601f66c2c0e551474a7f8ad.tar.bz2 packages_apps_Contacts-5dc3b4f80f38c0d48601f66c2c0e551474a7f8ad.zip |
Initial Contribution
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/preferences.xml | 41 | ||||
-rw-r--r-- | res/xml/searchable.xml | 39 |
2 files changed, 80 insertions, 0 deletions
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml new file mode 100644 index 000000000..dd18137f4 --- /dev/null +++ b/res/xml/preferences.xml @@ -0,0 +1,41 @@ +<?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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <PreferenceScreen + android:key="sync_groups" + android:title="@string/syncGroupPreference" + android:summary="@string/syncGroupPreference_summary"> + <intent + android:action="android.intent.action.VIEW" + android:targetPackage="com.android.contacts" + android:targetClass="com.android.contacts.ContactsGroupSyncSelector" + /> + </PreferenceScreen> + + <PreferenceScreen + android:title="@string/importFromSim" + > + + <intent + android:action="android.intent.action.VIEW" + android:mimeType="vnd.android.cursor.item/sim-contact" + android:targetPackage="com.android.phone" + android:targetClass="com.android.phone.SimContacts" + /> + </PreferenceScreen> +</PreferenceScreen> 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> |