When one preference is selected, other two preferences should be available for clicks, otherwise the should be shady/dim so that the user knows they are not clickable. Like how we set alpha for text. Attached the code below. Please Let me know if there is a solution.
<PreferenceCategory
android:title="@string/category_dnd_title"
app:iconSpaceReserved="false">
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="false"
android:key="key1"
android:title="title1" />
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="key1"
android:key="key2"
android:title="title2" />
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="key1"
android:key="@key3"
android:title="title3"/>
</PreferenceCategory>
To do this, you need some fragment class to manage your preferences in code.
@EDIT
You can override an SwitchPreferenceCompat class to make an enabled/disabled effect
In that case your preference xml should look like this
And you should change an access to the preference in fragment like