1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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<PreferenceScreen 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:title="@string/launch_by_default"> 21 22 <PreferenceCategory> 23 <com.android.settingslib.widget.SelectorWithWidgetPreference 24 android:key="app_launch_open_in_app" 25 android:title="@string/app_launch_open_in_app"/> 26 27 <com.android.settingslib.widget.SelectorWithWidgetPreference 28 android:key="app_launch_open_in_browser" 29 android:title="@string/app_launch_open_in_browser"/> 30 </PreferenceCategory> 31 32 <PreferenceCategory 33 android:layout="@layout/preference_category_no_label" 34 android:key="open_by_default_main_category" 35 settings:searchable="false"> 36 37 <PreferenceCategory 38 android:title="@string/app_launch_links_category"> 39 40 <Preference 41 android:key="open_by_default_verified_links" 42 android:title="@string/summary_placeholder" 43 android:order="-100" 44 settings:searchable="false"/> 45 46 <PreferenceCategory 47 android:layout="@layout/preference_category_no_label" 48 android:key="open_by_default_selected_links_category" 49 android:order="100"/> 50 51 <Preference 52 android:key="open_by_default_add_link" 53 android:title="@string/app_launch_add_link" 54 android:order="300" 55 android:icon="@drawable/ic_add_24dp"/> 56 57 </PreferenceCategory> 58 59 <PreferenceCategory android:key="app_launch_other_defaults" 60 android:title="@string/app_launch_other_defaults_title"> 61 62 <com.android.settings.applications.ClearDefaultsPreference 63 android:key="app_launch_clear_defaults" 64 android:selectable="false"/> 65 66 </PreferenceCategory> 67 68 <com.android.settingslib.widget.FooterPreference 69 android:key="open_by_default_footer" 70 android:selectable="false" 71 settings:searchable="false"/> 72 73 </PreferenceCategory> 74</PreferenceScreen> 75