android - how can hide a preference from the screen -
I have a class setting PreferenceActivity tool enhances OnSharedPreferenceChangeListener . I am loading preferences from the XML file but in some cases I need to hide the preferences screen completely based on my app status. I want to remove that preference completely from the screen. Is this possible? I only need to hide
settings_account and everything else
android: title = "@ string / settings_pbxes_options" & gt; & Lt; Checkbox projection Android: key = "par" android: title = "@ string / settings_par" Android: summary = "@ string / settings_ 2" /> & Lt; Checkbox projection Android: key = "correction" Android: title = "@ string / settings_ improve" /> & Lt; EditTextPreference Android: key = "posurl" android: title = "@ string / settings_posurl" Android: sign = "https://www1.pbxes.com/name" Android: singleLine = "true" /> & Lt; CheckboxSpeed Android: key = "pos" android: title = "@ string / settings_pos" Android: Summary = "@ string / settings_ pos2" /> & Lt; Checkbox Launch Android: Key = "Callback" Android: Title = "@ string / settings_ callback" Android: Summary = "@ string / settings_ callback2" /> & Lt; Checkbox Launch Android: Key = "Callthrough" Android: Title = "@ string / settings_ callthru" Android: Summary = "@ string / settings_ callback2" /> & Lt; EditTextPreference Android: Key = "Callthrough 2" Android: Title = "@ string / settings_ callthru2" Android: signal = "Exesno., Pin #Android: SingleLine =" True "/> & lt; / PreferenceScreen & gt; Perhaps you can create a second priority xml and load instead of
Comments
Post a Comment