hide CheckBoxPreference on some condition
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
精彩评论