diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/values/cm_strings.xml | 2 | ||||
-rw-r--r-- | res/values/preferences_defaults.xml | 4 | ||||
-rw-r--r-- | res/xml/preferences_headers.xml | 3 | ||||
-rw-r--r-- | res/xml/preferences_homescreen.xml | 25 |
4 files changed, 33 insertions, 1 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 4da459fd2..320567826 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -16,6 +16,8 @@ <!-- Homescreen --> <string name="preferences_interface_homescreen_title">Homescreen</string> <string name="preferences_interface_homescreen_summary">Screens and wallpaper</string> + <string name="preferences_interface_homescreen_search_title">Search bar</string> + <string name="preferences_interface_homescreen_search_summary">Show persistent search bar at top of screen</string> <!-- Drawer --> <string name="preferences_interface_drawer_title">Drawer</string> diff --git a/res/values/preferences_defaults.xml b/res/values/preferences_defaults.xml new file mode 100644 index 000000000..99fe92405 --- /dev/null +++ b/res/values/preferences_defaults.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <bool name="preferences_interface_homescreen_search_default">true</bool> +</resources>
\ No newline at end of file diff --git a/res/xml/preferences_headers.xml b/res/xml/preferences_headers.xml index c1975cabc..b90ec1eb4 100644 --- a/res/xml/preferences_headers.xml +++ b/res/xml/preferences_headers.xml @@ -17,6 +17,7 @@ <preference-headers xmlns:android="http://schemas.android.com/apk/res/android"> <header android:id="@+id/preferences_homescreen_section" + android:fragment="com.android.launcher3.settings.SettingsActivity$HomescreenFragment" android:title="@string/preferences_interface_homescreen_title" android:summary="@string/preferences_interface_homescreen_summary" /> @@ -35,4 +36,4 @@ <header android:id="@+id/preferences_application_version" android:summary="@string/application_copyright" /> -</preference-headers>
\ No newline at end of file +</preference-headers> diff --git a/res/xml/preferences_homescreen.xml b/res/xml/preferences_homescreen.xml new file mode 100644 index 000000000..8b2652b9a --- /dev/null +++ b/res/xml/preferences_homescreen.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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:launcher="http://schemas.android.com/apk/res/com.android.launcher3" + android:key="ui_homescreen" + android:title="@string/preferences_interface_homescreen_title"> + <CheckBoxPreference android:key="ui_homescreen_search" + android:title="@string/preferences_interface_homescreen_search_title" + android:summary="@string/preferences_interface_homescreen_search_summary" + android:defaultValue="@bool/preferences_interface_homescreen_search_default" /> +</PreferenceScreen> |