tags:

views:

81

answers:

1

hi,

In my android app, I have a preferenceScreen with some checkboxes , defined in a xml file , and a class that implements "SharedPreferences.OnSharedPreferenceChangeListener" . What I want to do is to select a checkbox and all the others to be selected as well. In the above listener I am able to modify the other checkboxes's state to selected, but my view remains unchanged. What should/could I do to achieve this ?

A: 

I don't know how your preference should look, but you might want to extend DialogPreference and create all checkboxes there.

Macarse
actually , this won't do :(
rantravee
why? Can you explain?
Macarse
well, it's not up to me , I didn't meant that it wouldn't work for me
rantravee