开发者

hide CheckBoxPreference on some condition

开发者 https://www.devze.com 2023-03-19 05:01 出处:网络
I have two CheckBoxPreferences in开发者_如何学编程 my Settings page and I want to hide one of them if a condition is satisfied. I see that there is no setVisibility method in CheckBoxPreference. Is th

I have two CheckBoxPreferences in开发者_如何学编程 my Settings page and I want to hide one of them if a condition is satisfied. I see that there is no setVisibility method in CheckBoxPreference. Is there a way to accomplish this? Any help is appreciated.thanks.


Solved it by adding the CheckBoxPreference through the java code

0

精彩评论

暂无评论...
验证码 换一张
取 消