On Feb 16, 10:51 pm, joebowbeer <[email protected]> wrote: > Something like this: > > public class MyPreferenceActivity extends PreferenceActivity { > > @Override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > getWindow().setBackgroundDrawableResource(R.drawable.my_background); > getListView().setBackgroundColor(Color.TRANSPARENT); > getListView().setCacheColorHint(Color.TRANSPARENT); > getPreferenceManager().setSharedPreferencesName("my_prefs"); > addPreferencesFromResource(R.xml.my_preferences); > } > > I'm not sure if the listView changes are necessary or advisable. > > Joe > > 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!
i'm afraid it works only for top-level preferences. if you have inner ScreenPreferences it won't work as ScreenPreferences use Dialogs in order to show their child Preferences pskink -- 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

