diff --git a/LibraryRateMe/src/com/androidsx/rateme/DialogRateMe.java b/LibraryRateMe/src/com/androidsx/rateme/DialogRateMe.java index 1a8c574..8a883f0 100644 --- a/LibraryRateMe/src/com/androidsx/rateme/DialogRateMe.java +++ b/LibraryRateMe/src/com/androidsx/rateme/DialogRateMe.java @@ -190,7 +190,7 @@ public void onClick(View v) { @Override public void onClick(View v) { if (goToMail) { - confirmGoToMailDialog(getArguments()).show(); + confirmGoToMailDialog(getArguments()); Log.d(TAG, "got to Mail for explain what is the problem"); } else { dismiss(); @@ -237,7 +237,14 @@ public void onClick(DialogInterface dialog, int id) { dismiss(); } }); - return builder.create(); + + AlertDialog dialog = builder.create(); + dialog.show(); + Button cancel = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); + cancel.setBackgroundDrawable(getResources().getDrawable(R.drawable.selector)); + Button yes = dialog.getButton(DialogInterface.BUTTON_POSITIVE); + yes.setBackgroundDrawable(getResources().getDrawable(R.drawable.selector)); + return dialog; } diff --git a/SampleProject/src/com/androidsx/rateme/demo1/SampleProject.java b/SampleProject/src/com/androidsx/rateme/demo1/SampleProject.java index 0245d37..089d593 100755 --- a/SampleProject/src/com/androidsx/rateme/demo1/SampleProject.java +++ b/SampleProject/src/com/androidsx/rateme/demo1/SampleProject.java @@ -66,7 +66,7 @@ private void AlertMenu() { new DialogRateMe.Builder(this) .setEmail(getString(R.string.email_address)) .setShowShareButton(true) - .setGoToMail(false) + .setGoToMail(true) .setTitleBackgroundColor(Color.GRAY) .setDialogColor(Color.GRAY) .setLineDividerColor(Color.WHITE)