How to do opposite of of preference attribute android:dependency?

后端 未结 5 1875
抹茶落季
抹茶落季 2020-12-07 18:36

Is there XML attribute that does the exact opposite of android:dependency?

What I would like the dependent preference to be enabled when the other is N

5条回答
  •  一向
    一向 (楼主)
    2020-12-07 19:02

    Actually found it on my own and figured I'd just post it here to help anyone that might have this same issue:

    android:disableDependentsState="true"
    

    Put that in the controlling preference.

提交回复
热议问题