Always reserve space for preference icons.
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
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/legal_information">
|
||||
android:title="@string/legal_information">
|
||||
|
||||
<!-- Note: The titles given here probably won't be used. Instead, we programmatically
|
||||
fill the title with the label of the activity with the corresponding action.
|
||||
@@ -23,38 +23,37 @@
|
||||
list. -->
|
||||
|
||||
<!-- Copyright information -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="copyright"
|
||||
android:title="@string/copyright_title">
|
||||
<intent android:action="android.settings.COPYRIGHT" />
|
||||
</PreferenceScreen>
|
||||
<intent android:action="android.settings.COPYRIGHT"/>
|
||||
</Preference>
|
||||
|
||||
<!-- License information -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="license"
|
||||
android:title="@string/license_title">
|
||||
<intent android:action="android.settings.LICENSE" />
|
||||
</PreferenceScreen>
|
||||
<intent android:action="android.settings.LICENSE"/>
|
||||
</Preference>
|
||||
|
||||
<!-- Terms and conditions -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="terms"
|
||||
android:title="@string/terms_title">
|
||||
<intent android:action="android.settings.TERMS" />
|
||||
</PreferenceScreen>
|
||||
<intent android:action="android.settings.TERMS"/>
|
||||
</Preference>
|
||||
|
||||
<!-- System WebView License information -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="webview_license"
|
||||
android:title="@string/webview_license_title">
|
||||
<intent android:action="android.settings.WEBVIEW_LICENSE" />
|
||||
</PreferenceScreen>
|
||||
<intent android:action="android.settings.WEBVIEW_LICENSE"/>
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="wallpaper_attributions"
|
||||
android:title="@string/wallpaper_attributions"
|
||||
android:summary="@string/wallpaper_attributions_values"
|
||||
/>
|
||||
android:summary="@string/wallpaper_attributions_values"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/accessibility_settings"
|
||||
android:persistent="true">
|
||||
|
||||
@@ -28,17 +27,17 @@
|
||||
android:key="system_category"
|
||||
android:title="@string/accessibility_system_title">
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.CaptionPropertiesFragment"
|
||||
android:key="captioning_preference_screen"
|
||||
android:title="@string/accessibility_captioning_title" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.ToggleScreenMagnificationPreferenceFragment"
|
||||
android:key="screen_magnification_preference_screen"
|
||||
android:title="@string/accessibility_screen_magnification_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"
|
||||
android:key="font_size_preference_screen"
|
||||
android:title="@string/title_font_size"/>
|
||||
@@ -47,7 +46,7 @@
|
||||
android:key="screen_zoom"
|
||||
android:title="@string/screen_zoom_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.ToggleAutoclickPreferenceFragment"
|
||||
android:key="autoclick_preference_screen"
|
||||
android:title="@string/accessibility_autoclick_preference_title"/>
|
||||
@@ -82,12 +81,13 @@
|
||||
android:summary="@string/accessibility_toggle_master_mono_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.ToggleGlobalGesturePreferenceFragment"
|
||||
android:key="enable_global_gesture_preference_screen"
|
||||
android:title="@string/accessibility_global_gesture_preference_title"/>
|
||||
|
||||
<PreferenceScreen android:key="tts_settings_preference"
|
||||
<Preference
|
||||
android:key="tts_settings_preference"
|
||||
android:fragment="com.android.settings.tts.TextToSpeechSettings"
|
||||
android:title="@string/tts_settings_title"/>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
android:title="@string/accessibility_display_inversion_preference_title"
|
||||
android:summary="@string/accessibility_display_inversion_preference_subtitle"
|
||||
android:persistent="false" />
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.ToggleDaltonizerPreferenceFragment"
|
||||
android:key="daltonizer_preference_screen"
|
||||
android:title="@string/accessibility_display_daltonizer_preference_title" />
|
||||
|
||||
@@ -29,11 +29,10 @@
|
||||
<PreferenceCategory
|
||||
android:title="@string/default_apps_title">
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="domain_urls"
|
||||
android:title="@string/domain_urls_title"
|
||||
android:fragment="com.android.settings.applications.ManageDomainUrls">
|
||||
</PreferenceScreen>
|
||||
android:fragment="com.android.settings.applications.ManageDomainUrls" />
|
||||
|
||||
<Preference
|
||||
android:key="assist_and_voice_input"
|
||||
|
||||
@@ -64,8 +64,7 @@
|
||||
<Preference
|
||||
android:key="domain_urls"
|
||||
android:title="@string/domain_urls_title"
|
||||
android:fragment="com.android.settings.applications.ManageDomainUrls">
|
||||
</Preference>
|
||||
android:fragment="com.android.settings.applications.ManageDomainUrls"/>
|
||||
|
||||
<com.android.settings.WorkOnlyCategory
|
||||
android:key="work_defaults"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
android:summary="12:00am"
|
||||
/>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:fragment="com.android.settings.ZonePicker"
|
||||
android:key="timezone"
|
||||
android:title="@string/date_time_set_timezone"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
android:title="@*android:string/bugreport_title"
|
||||
android:dialogTitle="@*android:string/bugreport_title" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="local_backup_password"
|
||||
android:title="@string/local_backup_password_title"
|
||||
android:summary="@string/local_backup_password_summary_none"
|
||||
@@ -31,7 +31,7 @@
|
||||
android:action="android.settings.privacy.SET_FULL_BACKUP_PASSWORD"
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.android.settings.SetFullBackupPassword" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:key="keep_screen_on"
|
||||
@@ -57,13 +57,13 @@
|
||||
android:summary="@string/oem_unlock_enable_summary"
|
||||
settings:useAdditionalSummary="true"/>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="running_apps"
|
||||
android:title="@string/runningservices_settings_title"
|
||||
android:summary="@string/runningservices_settings_summary"
|
||||
android:fragment="com.android.settings.applications.RunningServices" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="convert_to_file_encryption"
|
||||
android:title="@string/convert_to_file_encryption"
|
||||
android:summary="@string/convert_to_file_encryption_enabled"
|
||||
@@ -94,11 +94,11 @@
|
||||
android:key="ota_disable_automatic_update"
|
||||
android:title="@string/ota_disable_automatic_update" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="demo_mode"
|
||||
android:title="@string/demo_mode">
|
||||
<intent android:action="com.android.settings.action.DEMO_MODE" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<PreferenceCategory android:key="debug_debugging_category"
|
||||
android:title="@string/debug_debugging_category">
|
||||
@@ -121,14 +121,14 @@
|
||||
android:title="@string/bugreport_in_power"
|
||||
android:summary="@string/bugreport_in_power_summary"/>
|
||||
|
||||
<PreferenceScreen android:key="mock_location_app"
|
||||
<Preference android:key="mock_location_app"
|
||||
android:title="@string/mock_location_app" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="debug_view_attributes"
|
||||
android:title="@string/debug_view_attributes" />
|
||||
|
||||
<PreferenceScreen android:key="debug_app"
|
||||
<Preference android:key="debug_app"
|
||||
android:title="@string/debug_app" />
|
||||
|
||||
<SwitchPreference
|
||||
|
||||
@@ -19,56 +19,54 @@
|
||||
android:title="@string/about_settings">
|
||||
|
||||
<!-- System update settings - launches activity -->
|
||||
<PreferenceScreen android:key="system_update_settings"
|
||||
<Preference android:key="system_update_settings"
|
||||
android:title="@string/system_update_settings_list_item_title"
|
||||
android:summary="@string/system_update_settings_list_item_summary">
|
||||
<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
|
||||
<PreferenceScreen android:key="additional_system_update_settings"
|
||||
<Preference android:key="additional_system_update_settings"
|
||||
android:title="@string/additional_system_update_settings_list_item_title">
|
||||
<intent android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="@string/additional_system_update"
|
||||
android:targetClass="@string/additional_system_update_menu" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<!-- Device status - launches activity -->
|
||||
<PreferenceScreen android:key="status_info"
|
||||
<Preference android:key="status_info"
|
||||
android:title="@string/device_status"
|
||||
android:summary="@string/device_status_summary"
|
||||
android:fragment="com.android.settings.deviceinfo.Status">
|
||||
</PreferenceScreen>
|
||||
android:fragment="com.android.settings.deviceinfo.Status"/>
|
||||
|
||||
<!-- Manual -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="manual"
|
||||
android:title="@string/manual">
|
||||
<intent android:action="android.settings.SHOW_MANUAL" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<!-- Legal Information -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="container"
|
||||
android:title="@string/legal_information"
|
||||
android:fragment="com.android.settings.LegalSettings" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="regulatory_info"
|
||||
android:title="@string/regulatory_labels">
|
||||
<intent android:action="android.settings.SHOW_REGULATORY_INFO" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="safety_info"
|
||||
android:title="@string/safety_and_regulatory_info">
|
||||
<intent android:action="android.settings.SHOW_SAFETY_AND_REGULATORY_INFO" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<!-- Feedback on the device -->
|
||||
<PreferenceScreen android:key="device_feedback"
|
||||
android:title="@string/device_feedback">
|
||||
</PreferenceScreen>
|
||||
<Preference android:key="device_feedback"
|
||||
android:title="@string/device_feedback" />
|
||||
|
||||
<!-- Device hardware model -->
|
||||
<com.android.settings.DividerPreference
|
||||
@@ -89,12 +87,12 @@
|
||||
android:summary="@string/device_info_default"/>
|
||||
|
||||
<!-- Security patch level -->
|
||||
<PreferenceScreen android:key="security_patch"
|
||||
<Preference android:key="security_patch"
|
||||
android:title="@string/security_patch"
|
||||
android:summary="@string/device_info_default">
|
||||
<intent android:action="android.intent.action.VIEW"
|
||||
android:data="https://source.android.com/security/bulletin/" />
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<!-- Device FCC equipment id -->
|
||||
<com.android.settings.DividerPreference
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
settings:keywords="@string/keywords_display_auto_brightness"
|
||||
android:summary="@string/auto_brightness_summary" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="font_size"
|
||||
android:title="@string/title_font_size"
|
||||
android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"
|
||||
@@ -72,7 +72,7 @@
|
||||
android:title="@string/screen_zoom_title"
|
||||
settings:keywords="@string/screen_zoom_keywords" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="screensaver"
|
||||
android:title="@string/screensaver_settings_title"
|
||||
android:fragment="com.android.settings.DreamSettings" />
|
||||
@@ -105,7 +105,7 @@
|
||||
android:title="@string/tap_to_wake"
|
||||
android:summary="@string/tap_to_wake_summary" />
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="wifi_display"
|
||||
android:title="@string/wifi_display_settings_title"
|
||||
settings:keywords="@string/keywords_display_cast_screen"
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
android:persistent="false"
|
||||
android:fragment="com.android.settings.TrustAgentSettings"/>
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="screen_pinning_settings"
|
||||
android:title="@string/screen_pinning_title"
|
||||
android:summary="@string/switch_off_text"
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/sound_settings"
|
||||
android:key="sound_settings"
|
||||
settings:keywords="@string/keywords_sounds">
|
||||
android:title="@string/sound_settings"
|
||||
android:key="sound_settings"
|
||||
settings:keywords="@string/keywords_sounds">
|
||||
|
||||
<!-- Media volume -->
|
||||
<com.android.settings.notification.VolumeSeekBarPreference
|
||||
@@ -87,7 +87,7 @@
|
||||
android:key="cell_broadcast_settings"
|
||||
android:title="@string/cell_broadcast_settings"
|
||||
settings:useAdminDisabledSummary="true">
|
||||
<intent
|
||||
<intent
|
||||
android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="com.android.cellbroadcastreceiver"
|
||||
android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings" />
|
||||
@@ -101,7 +101,7 @@
|
||||
android:fragment="com.android.settings.notification.OtherSoundSettings" />
|
||||
|
||||
<!-- Cast -->
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="wifi_display"
|
||||
android:title="@string/wifi_display_settings_title"
|
||||
android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
|
||||
|
||||
Reference in New Issue
Block a user