I currently have a custom Dialog class that extends DialogPreference(which of course is a part of a PreferenceScreen).
This Dialog have custom buttons which handles save and cancel. Therefor i would like to get rid of the standard “positive” and “negative” buttons.
Tried using AlertDialog getButton method but no success.
in your xml use the following instead of DialogPreference:
Then in the java:
Then add to your class body:
I’m not sure if this is the best method, but it’s how I do it, and it works.