title: Difference between DialogPreference before and after AndroidX
body: <p>We are currently migrating to Androidx namespace with our Android app project. However I noticed that not only the namespace seems to have changed. For DialogPreference also some interfaces which were using before are now missing</p>
  
  <ul>
  <li>new interfaces: <a href="https://developer.android.com/reference/androidx/preference/DialogPreference" rel="noreferrer">https://developer.android.com/reference/androidx/preference/DialogPreference</a></li>
  <li>old interfaces: <a href="https://developer.android.com/reference/kotlin/android/preference/DialogPreference" rel="noreferrer">https://developer.android.com/reference/kotlin/android/preference/DialogPreference</a></li>
  </ul>
  
  <p>For example the following methods seem to be missing: onBindDialogView, showDialog, onDialogClosed.</p>
  
  <p>Since we use some of these methods to influence the default behavior of the dialog, it is unclear to me how I should realize this functionality now. For example we are validating the input before closing the dialog, we are saving the value in a database instead of the sharedpreferences and adding some dynamic elements to the dialog.</p>
  
  <p>Has anyone else already encountered this problem and found a solution? Did I miss anything in the documentation? Is there another concept that we can / should use? </p>
  
  <p>It would be possible to use Fragments instead of DialogPreference but for small amounts of content (e.g. a list of tree items, where the user can choose from) this seems to be a lot of overhead for me...</p>