diff --git a/core/java/android/preference/PreferenceActivity.java b/core/java/android/preference/PreferenceActivity.java
index d3ab844acf0ce..c1ee0cfaaec19 100644
--- a/core/java/android/preference/PreferenceActivity.java
+++ b/core/java/android/preference/PreferenceActivity.java
@@ -473,6 +473,9 @@ public abstract class PreferenceActivity extends ListActivity implements
} else {
// If there are no headers, we are in the old "just show a screen
// of preferences" mode.
+ setContentView(com.android.internal.R.layout.preference_list_content_single);
+ mListFooter = (FrameLayout) findViewById(com.android.internal.R.id.list_footer);
+ mPrefsContainer = findViewById(com.android.internal.R.id.prefs);
mPreferenceManager = new PreferenceManager(this, FIRST_REQUEST_CODE);
mPreferenceManager.setOnPreferenceTreeClickListener(this);
}
diff --git a/core/res/res/drawable-hdpi/panel_bg_holo_dark.9.png b/core/res/res/drawable-hdpi/panel_bg_holo_dark.9.png
new file mode 100644
index 0000000000000..0f883dc8415e3
Binary files /dev/null and b/core/res/res/drawable-hdpi/panel_bg_holo_dark.9.png differ
diff --git a/core/res/res/drawable-hdpi/panel_bg_holo_light.9.png b/core/res/res/drawable-hdpi/panel_bg_holo_light.9.png
new file mode 100644
index 0000000000000..ddd242ba8d0ce
Binary files /dev/null and b/core/res/res/drawable-hdpi/panel_bg_holo_light.9.png differ
diff --git a/core/res/res/drawable-mdpi/panel_bg_holo_dark.9.png b/core/res/res/drawable-mdpi/panel_bg_holo_dark.9.png
new file mode 100644
index 0000000000000..78a86a58e56c0
Binary files /dev/null and b/core/res/res/drawable-mdpi/panel_bg_holo_dark.9.png differ
diff --git a/core/res/res/drawable-mdpi/panel_bg_holo_light.9.png b/core/res/res/drawable-mdpi/panel_bg_holo_light.9.png
new file mode 100644
index 0000000000000..f4a25bc007dba
Binary files /dev/null and b/core/res/res/drawable-mdpi/panel_bg_holo_light.9.png differ
diff --git a/core/res/res/layout-xlarge/preference_list_content_single.xml b/core/res/res/layout-xlarge/preference_list_content_single.xml
new file mode 100644
index 0000000000000..6899ed07cea97
--- /dev/null
+++ b/core/res/res/layout-xlarge/preference_list_content_single.xml
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/res/res/layout/preference.xml b/core/res/res/layout/preference.xml
index 9bd6f1b9f7e2e..ba0e225e3c20b 100644
--- a/core/res/res/layout/preference.xml
+++ b/core/res/res/layout/preference.xml
@@ -4,9 +4,9 @@
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.
@@ -23,11 +23,14 @@
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:paddingRight="?android:attr/scrollbarSize">
-
+
+
+
@@ -47,6 +50,7 @@
android:layout_below="@android:id/title"
android:layout_alignLeft="@android:id/title"
android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"
android:maxLines="4" />
diff --git a/core/res/res/layout/preference_category.xml b/core/res/res/layout/preference_category.xml
index 280d952ac5124..7ffdc9af1f7ac 100644
--- a/core/res/res/layout/preference_category.xml
+++ b/core/res/res/layout/preference_category.xml
@@ -18,4 +18,5 @@
diff --git a/core/res/res/layout/preference_dialog.xml b/core/res/res/layout/preference_dialog.xml
index 5cf0f6e22b7f0..035b411c869f0 100644
--- a/core/res/res/layout/preference_dialog.xml
+++ b/core/res/res/layout/preference_dialog.xml
@@ -14,13 +14,53 @@
limitations under the License.
-->
-
-
+
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:gravity="center_vertical"
+ android:paddingRight="?android:attr/scrollbarSize">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/res/res/layout/preference_dialog_edittext.xml b/core/res/res/layout/preference_dialog_edittext.xml
index 5be5773fcfb9f..691ee8c8d339e 100644
--- a/core/res/res/layout/preference_dialog_edittext.xml
+++ b/core/res/res/layout/preference_dialog_edittext.xml
@@ -17,7 +17,9 @@
+ android:layout_height="match_parent"
+ android:layout_marginTop="48dp"
+ android:layout_marginBottom="48dp">
-
+
diff --git a/core/res/res/layout/preference_header_item.xml b/core/res/res/layout/preference_header_item.xml
index f00e7aa59d29c..a987de3c92a60 100644
--- a/core/res/res/layout/preference_header_item.xml
+++ b/core/res/res/layout/preference_header_item.xml
@@ -44,7 +44,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
- android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textAppearance="?android:attr/textAppearanceMedium"
android:ellipsize="marquee"
android:fadingEdge="horizontal" />
diff --git a/core/res/res/layout/preference_information.xml b/core/res/res/layout/preference_information.xml
index a5cf31a81fe72..9c9b83ebf3bb5 100644
--- a/core/res/res/layout/preference_information.xml
+++ b/core/res/res/layout/preference_information.xml
@@ -23,21 +23,24 @@
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:paddingRight="?android:attr/scrollbarSize">
-
+
+
+
-
+
+ android:layout_width="match_parent">
@@ -46,7 +45,6 @@
android:layout_height="0px"
android:layout_weight="1"
android:drawSelectorOnTop="false"
- android:background="#40404040"
android:cacheColorHint="@android:color/transparent"
android:listPreferredItemHeight="48dp"
android:scrollbarAlwaysDrawVerticalTrack="true" />
@@ -61,12 +59,16 @@
diff --git a/core/res/res/layout/preference_list_content_single.xml b/core/res/res/layout/preference_list_content_single.xml
new file mode 100644
index 0000000000000..a0157612ff4a1
--- /dev/null
+++ b/core/res/res/layout/preference_list_content_single.xml
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/res/res/layout/preference_widget_checkbox.xml b/core/res/res/layout/preference_widget_checkbox.xml
index c1ad360872645..1ca43935a6294 100644
--- a/core/res/res/layout/preference_widget_checkbox.xml
+++ b/core/res/res/layout/preference_widget_checkbox.xml
@@ -16,11 +16,54 @@
-
+
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:gravity="center_vertical"
+ android:paddingRight="?android:attr/scrollbarSize">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/res/res/values-land/dimens.xml b/core/res/res/values-land/dimens.xml
index 647a562c0a603..d562d96ab0f48 100644
--- a/core/res/res/values-land/dimens.xml
+++ b/core/res/res/values-land/dimens.xml
@@ -21,4 +21,6 @@
47dip
2dip
+ 32dp
+ 64dp
\ No newline at end of file
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml
index b22d833362be8..2a942b8440a90 100755
--- a/core/res/res/values/attrs.xml
+++ b/core/res/res/values/attrs.xml
@@ -545,6 +545,8 @@
+
+
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
index 0928ce0512791..2f0dfc1597f84 100644
--- a/core/res/res/values/dimens.xml
+++ b/core/res/res/values/dimens.xml
@@ -52,4 +52,8 @@
56dip
4dip
+
+ 0dp
+
+ 56dp
diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml
index adf1715daed98..1fd25658673b0 100644
--- a/core/res/res/values/styles.xml
+++ b/core/res/res/values/styles.xml
@@ -820,7 +820,7 @@
diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml
index cefc039838043..b4e3c6f532e84 100644
--- a/core/res/res/values/themes.xml
+++ b/core/res/res/values/themes.xml
@@ -233,6 +233,7 @@
- @android:style/Preference.DialogPreference.EditTextPreference
- @android:style/Preference.RingtonePreference
- @android:layout/preference_child
+ - @android:drawable/panel_bg_holo_dark
- @android:color/search_widget_corpus_item_background
@@ -843,6 +844,7 @@
- @android:style/Preference.DialogPreference.EditTextPreference
- @android:style/Preference.RingtonePreference
- @android:layout/preference_child
+ - @android:drawable/panel_bg_holo_dark
- @android:color/search_widget_corpus_item_background
@@ -1077,6 +1079,7 @@
- @android:style/Preference.DialogPreference.EditTextPreference
- @android:style/Preference.RingtonePreference
- @android:layout/preference_child
+ - @android:drawable/panel_bg_holo_light
- @android:color/search_widget_corpus_item_background