summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorNebojsa Cvetkovic <nebkat@gmail.com>2013-11-20 22:46:33 +0000
committerDanesh M <daneshm90@gmail.com>2014-01-24 16:24:23 -0800
commit2af21d644dfdb5db0a0da751937566058c0cdfc4 (patch)
tree8d78866256240ec781af47fcb70ef3f691cf5b25 /res/xml
parent088187ee79416506852262535fca8963611fafbc (diff)
downloadandroid_packages_apps_Trebuchet-2af21d644dfdb5db0a0da751937566058c0cdfc4.tar.gz
android_packages_apps_Trebuchet-2af21d644dfdb5db0a0da751937566058c0cdfc4.tar.bz2
android_packages_apps_Trebuchet-2af21d644dfdb5db0a0da751937566058c0cdfc4.zip
Settings: Show Search Bar
Change-Id: I7e5c301cd3d0212fbfe0a96de0435ddded4cabaa
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/preferences_headers.xml3
-rw-r--r--res/xml/preferences_homescreen.xml25
2 files changed, 27 insertions, 1 deletions
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>