I have been attempting to use an android.preference.DialogPreference inflated from XML, but the documentation seems to be missing some essential bits, and I can
Create your own class which extends DialogPreference as bellow:
package com.test.view;
import android.preference.DialogPreference;
public class DialogExPreference extends DialogPreference
{
public DialogExPreference(Context oContext, AttributeSet attrs)
{
super(oContext, attrs);
}
}
Modify the xml file as bellow:
Then it's OK.