I have a ListPreference
which look something like this:
<ListPreference
android:title="Choose item"
android:summary="..."
android:key="itemList"
android:defaultValue="item1"
android:entries="@array/items"
android:entryValues="@array/itemValues" />
Then, I have another preference which should only be enabled if "item3" is selected in the ListPreference
.
Can I somehow accomplish this with android:dependency
? Something like android:dependency="itemList:item3"
Thanks!