I am currently trying to create a custom Preference with a Datepicker.
For that purpose I've found a tutorial.
Next to the xml, the first step was to create a class "TimePreference" which extends "DialogPreference".
The second class was "TimePreferenceFragmentCompat" which extends "PreferenceDialogFragmentCompat".
But in my Android Studio I can't find the "PreferenceDialogFragmentCompat" class.
add this line to your Gradle dependencies: