launcher_preferences.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2015 Google Inc.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <androidx.preference.PreferenceScreen
  14. xmlns:android="http://schemas.android.com/apk/res/android">
  15. <com.android.launcher3.settings.NotificationDotsPreference
  16. android:key="pref_icon_badging"
  17. android:title="@string/notification_dots_title"
  18. android:persistent="false"
  19. android:widgetLayout="@layout/notification_pref_warning" >
  20. <intent android:action="android.settings.NOTIFICATION_SETTINGS">
  21. <!-- This extra highlights the "Allow notification dots" field in Notification settings -->
  22. <extra
  23. android:name=":settings:fragment_args_key"
  24. android:value="notification_badging" />
  25. </intent>
  26. </com.android.launcher3.settings.NotificationDotsPreference>
  27. <SwitchPreference
  28. android:key="pref_add_icon_to_home"
  29. android:title="@string/auto_add_shortcuts_label"
  30. android:summary="@string/auto_add_shortcuts_description"
  31. android:defaultValue="true"
  32. android:persistent="true" />
  33. <SwitchPreference
  34. android:key="pref_allowRotation"
  35. android:title="@string/allow_rotation_title"
  36. android:summary="@string/allow_rotation_desc"
  37. android:defaultValue="@bool/allow_rotation"
  38. android:persistent="true" />
  39. <SwitchPreference
  40. android:key="pref_grid_options"
  41. android:title="Enable grid options"
  42. android:defaultValue="false"
  43. android:persistent="true" />
  44. <androidx.preference.PreferenceScreen
  45. android:key="pref_developer_options"
  46. android:persistent="false"
  47. android:title="Developer Options"
  48. android:fragment="com.android.launcher3.settings.DeveloperOptionsFragment"/>
  49. </androidx.preference.PreferenceScreen>