Understood, but didn't work.
I'm just not sure if I put it in the right place:

PreferenceScreen aPrefs = (PreferenceScreen)
findPreference(OPT_VIBRATE_SELECT);
                vibPrefs.setOnPreferenceClickListener(new
OnPreferenceClickListener()
                {
                        @Override
                        public boolean onPreferenceClick(Preference preference)
                        {
                                
getListView().setBackgroundResource(R.drawable.bg);
                                getListView().setCacheColorHint(0);
                                return false;
                        }
                });

Is there a onSomethingChange method where I can put it or I'm doing a
mistake somewhere else?


On Dec 3, 9:10 pm, TreKing <[email protected]> wrote:
> On Fri, Dec 3, 2010 at 4:59 PM, Douglas Fonseca 
> <[email protected]>wrote:
>
> > But I can't set the same background image to my child preferences screens
> > said above because I can't find the getListView method for them...
> > Doing
> > PreferenceScreen aPrefs = (PreferenceScreen)
> > findPreference(OPT_VIBRATE_SELECT);
> > Just give me a PreferenceScreen Object that have no getListView method...
>
> Though you have a new preference screen, you're still in the same activity.
> Do what you're doing to set the colors again after the new child screen is
> shown.
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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

Reply via email to