title: Android: Hiding and Showing CheckBoxPreference
body: <p>I have a <strong>PreferenceScreen</strong> with multiple <strong>PreferenceCategory</strong> that have many <strong>CheckBoxPreferences</strong> in them. I'm trying to create an expandable list concept by hiding or displaying a category on click of the preference category label. I can implement the click listener but there's no way to set the visibility for a <strong>CheckBoxPreference</strong> as far as I know apart from using <strong>addPreference</strong> and <strong>removePreference</strong> but since the layout is completely built in xml (required to do so) I can not add preferences to the correct category without causing force closes. Is there a way instead to somehow treat the <strong>CheckBoxPreference</strong> as a <strong>View</strong> and change its visibility to GONE or VISIBLE as needed? Or is there an alternate method to accomplish what I'm trying to do? Thanks.</p>