diff --git a/core/java/android/preference/Preference.java b/core/java/android/preference/Preference.java index e869f3f8cbc5f..7d37e5bdf11d1 100644 --- a/core/java/android/preference/Preference.java +++ b/core/java/android/preference/Preference.java @@ -285,7 +285,7 @@ public class Preference implements Comparable, OnDependencyChangeLis * @see #Preference(Context, AttributeSet, int) */ public Preference(Context context, AttributeSet attrs) { - this(context, attrs, 0); + this(context, attrs, com.android.internal.R.attr.preferenceStyle); } /** diff --git a/core/res/res/layout/preference.xml b/core/res/res/layout/preference.xml index 6bd5efafdb6ce..1f92252b2d8d0 100644 --- a/core/res/res/layout/preference.xml +++ b/core/res/res/layout/preference.xml @@ -24,36 +24,30 @@ android:gravity="center_vertical" android:paddingRight="?android:attr/scrollbarSize"> - - - + android:layout_height="wrap_content" + android:layout_gravity="center" + /> - + - + diff --git a/core/res/res/layout/preference_category.xml b/core/res/res/layout/preference_category.xml index 7ffdc9af1f7ac..280d952ac5124 100644 --- a/core/res/res/layout/preference_category.xml +++ b/core/res/res/layout/preference_category.xml @@ -18,5 +18,4 @@ diff --git a/core/res/res/layout/preference_category_holo.xml b/core/res/res/layout/preference_category_holo.xml new file mode 100644 index 0000000000000..5fe8b28f18bcf --- /dev/null +++ b/core/res/res/layout/preference_category_holo.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/core/res/res/layout/preference_child_holo.xml b/core/res/res/layout/preference_child_holo.xml new file mode 100644 index 0000000000000..2e70d77cdc03e --- /dev/null +++ b/core/res/res/layout/preference_child_holo.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/layout/preference_holo.xml b/core/res/res/layout/preference_holo.xml new file mode 100644 index 0000000000000..c448f6432784f --- /dev/null +++ b/core/res/res/layout/preference_holo.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/layout/preference_information.xml b/core/res/res/layout/preference_information.xml index 9c9b83ebf3bb5..32cbb9055301c 100644 --- a/core/res/res/layout/preference_information.xml +++ b/core/res/res/layout/preference_information.xml @@ -24,13 +24,10 @@ android:gravity="center_vertical" android:paddingRight="?android:attr/scrollbarSize"> - - - + - + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index c4e815e86ebc8..a3660470ca19f 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -889,22 +889,66 @@ @android:string/ok @android:string/cancel - + - + - + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 744d0d8ffef59..506dd07569985 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -924,18 +924,18 @@ @android:style/Widget.Holo.QuickContactBadgeSmall.WindowLarge @android:style/Widget.Holo.ListPopupWindow @android:style/Widget.Holo.PopupMenu - + - @android:style/Preference.PreferenceScreen - @android:style/Preference.Category - @android:style/Preference - @android:style/Preference.Information - @android:style/Preference.CheckBoxPreference - @android:style/Preference.DialogPreference.YesNoPreference - @android:style/Preference.DialogPreference - @android:style/Preference.DialogPreference.EditTextPreference - @android:style/Preference.RingtonePreference - @android:layout/preference_child + @android:style/Preference.Holo.PreferenceScreen + @android:style/Preference.Holo.Category + @android:style/Preference.Holo + @android:style/Preference.Holo.Information + @android:style/Preference.Holo.CheckBoxPreference + @android:style/Preference.Holo.DialogPreference.YesNoPreference + @android:style/Preference.Holo.DialogPreference + @android:style/Preference.Holo.DialogPreference.EditTextPreference + @android:style/Preference.Holo.RingtonePreference + @android:layout/preference_child_holo @android:drawable/panel_bg_holo_dark @@ -1187,16 +1187,16 @@ @android:style/Widget.Holo.Light.PopupMenu - @android:style/Preference.PreferenceScreen - @android:style/Preference.Category - @android:style/Preference - @android:style/Preference.Information - @android:style/Preference.CheckBoxPreference - @android:style/Preference.DialogPreference.YesNoPreference - @android:style/Preference.DialogPreference - @android:style/Preference.DialogPreference.EditTextPreference - @android:style/Preference.RingtonePreference - @android:layout/preference_child + @android:style/Preference.Holo.PreferenceScreen + @android:style/Preference.Holo.Category + @android:style/Preference.Holo + @android:style/Preference.Holo.Information + @android:style/Preference.Holo.CheckBoxPreference + @android:style/Preference.Holo.DialogPreference.YesNoPreference + @android:style/Preference.Holo.DialogPreference + @android:style/Preference.Holo.DialogPreference.EditTextPreference + @android:style/Preference.Holo.RingtonePreference + @android:layout/preference_child_holo @android:drawable/panel_bg_holo_light