How to enable a preference in my android application when other preference is disabled ?

Posted by Kaillash on Stack Overflow See other posts from Stack Overflow or by Kaillash
Published on 2010-04-20T06:08:40Z Indexed on 2010/04/20 6:13 UTC
Read the original article Hit count: 252

Hi,

I have used PreferenceActivity to have preference in my android application. I want one preference say "pref 2" to be enabled when other preference say "pref 1" is NOT checked and "pref 2" to be disabled when "pref 1" is checked. i.e. exactly opposite of the android:dependancy attribute.

How can I do that?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-preferences