I am using a colorpicker that extends Dialog, but i want it to also have the NegativeButton (Cancel) and PositiveButton (OK) similar to the alertdialog (see picture in the attachment). The OK button should have the same functionality as onDialogClosed.
## Deliverables
i am using the following code to open it, but it does not work:
LayoutInflater inflater = (LayoutInflater)[login to view URL](LAYOUT_INFLATER_SERVICE);
View layout = [login to view URL]([login to view URL], null);
[login to view URL] screenDialog = new [login to view URL]([login to view URL]);
[login to view URL]("Captured Screen");
[login to view URL](layout);
[login to view URL]("OK", new [login to view URL]() {
// do something when the button is clicked
public void onClick(DialogInterface arg0, int arg1) {
}
});
[login to view URL]();