This aligns text on preferences on the same screen when some of them don't have icons. - Use a custom layout for preference EditPreference switch preference VolumeSeekPreference DialogPreferencei Restricted*Preference DropdownPreference - Moved related style defs into a new file styles_preference.xml, because current styles file is too large to read. - Switch <PreferenceScreen ...> to <Preference ...> for a bunch of regular preferences. - Also removed some dead style. Bug: 33430928 Test: runtest --path packages/apps/Settings/tests/app/src/com/android/settings/dashboard/PreferenceThemeTest.java Change-Id: Ic9b75d3f133f2a83cd999297b8596253d4b10161
92 lines
3.6 KiB
XML
92 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2016 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"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<Preference
|
|
android:key="assist_and_voice_input"
|
|
android:title="@string/assist_and_voice_input_title"
|
|
android:fragment="com.android.settings.applications.ManageAssist"
|
|
android:order="-20"/>
|
|
|
|
<com.android.settings.applications.DefaultBrowserPreference
|
|
android:key="default_browser"
|
|
android:title="@string/default_browser_title"
|
|
android:summary="@string/default_browser_title_none"
|
|
android:order="-19"/>
|
|
|
|
<com.android.settings.applications.DefaultHomePreference
|
|
android:key="default_home"
|
|
android:title="@string/home_app"
|
|
android:summary="@string/no_default_home"
|
|
settings:keywords="@string/keywords_home"
|
|
android:order="-18"/>
|
|
|
|
<com.android.settings.applications.DefaultPhonePreference
|
|
android:key="default_phone_app"
|
|
android:title="@string/default_phone_title"
|
|
settings:keywords="@string/keywords_default_phone_app"
|
|
android:order="-17"/>
|
|
|
|
<com.android.settings.applications.DefaultSmsPreference
|
|
android:key="default_sms_app"
|
|
android:title="@string/sms_application_title"
|
|
settings:keywords="@string/keywords_more_default_sms_app"
|
|
android:order="-16"/>
|
|
|
|
<com.android.settings.applications.DefaultEmergencyPreference
|
|
android:key="default_emergency_app"
|
|
android:title="@string/default_emergency_app"
|
|
settings:keywords="@string/keywords_emergency_app"
|
|
android:order="-15"/>
|
|
|
|
<com.android.settings.applications.DefaultNotificationAssistantPreference
|
|
android:key="default_notification_asst_app"
|
|
android:title="@string/default_notification_assistant"
|
|
android:order="-14"/>
|
|
|
|
<Preference
|
|
android:key="domain_urls"
|
|
android:title="@string/domain_urls_title"
|
|
android:fragment="com.android.settings.applications.ManageDomainUrls"/>
|
|
|
|
<com.android.settings.WorkOnlyCategory
|
|
android:key="work_defaults"
|
|
android:title="@string/default_for_work">
|
|
|
|
<com.android.settings.applications.DefaultBrowserPreference
|
|
android:key="work_default_browser"
|
|
android:title="@string/default_browser_title"
|
|
android:summary="@string/default_browser_title_none"
|
|
settings:forWork="true"/>
|
|
|
|
<com.android.settings.applications.DefaultPhonePreference
|
|
android:key="work_default_phone_app"
|
|
android:title="@string/default_phone_title"
|
|
settings:keywords="@string/keywords_default_phone_app"
|
|
settings:forWork="true"/>
|
|
|
|
</com.android.settings.WorkOnlyCategory>
|
|
|
|
<Preference
|
|
android:key="special_access"
|
|
android:fragment="com.android.settings.applications.SpecialAccessSettings"
|
|
android:title="@string/special_access"/>
|
|
|
|
</PreferenceScreen> |