setShouldDisableView

open fun setShouldDisableView(shouldDisableView: Boolean)(source)

Sets whether this preference should disable its view when it gets disabled.

For example, set this and setEnabled to false for preferences that are only displaying information and 1) should not be clickable 2) should not have the view set to the disabled state.

Parameters

shouldDisableView

Set true if this preference should disable its view when the preference is disabled.