I think you'll need to supply the android:layout attribute, and supply an alternative layout with the background set.
You can find the default layout in the SDK at platforms/android-2.1/ data/res/layout/preference.xml If you just want to customize the widget portion, use android:widgetLayout instead, but this sounds like you want to affect the entire preference. On Feb 16, 3:33 am, Vincent <[email protected]> wrote: > Hi, > > Does anybody know how to change the background color of Preference > (PreferenceCategory, EditTextPreference ...) ? > > I wanna do like this: > <PreferenceCategory android:title="title_test" > android:background="@color/testColor"> > But this doesn't work... > I searched these by using google, but couldn't find any right > answer... > > Also, I couldn't find any way to change other layouts. (e.g. text > color, size and style of preference title or summary) > Is there no way to customize the layout of Preferences? > It'll be great if somebody can help me out. > > thanks in advance! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

