1) invert the preference "question" for the dependency.
2) If you convert your preference from XML to code, you may have more
flexibility.

(You have probably considered both and neither is a good option for
you...)
Jim


On May 22, 12:14 am, "Peter Carpenter"
<[email protected]> wrote:
> Hi,
>
> I have a preference where I'd like to toggle the state of a preference
> depending on the state of a checkbox.
>
> This works wonderfully if I want something visible when it's checked.
> However I want another preference to be visible when it's NOT checked.
>
> Is there a way to specify "android:dependency= !"pref_server_active"  or
> android:dependency= NOT("pref_server_active") ?
>
> Cheers,
>
> Peter.
--~--~---------~--~----~------------~-------~--~----~
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