Android-RateThisApp
Android-RateThisApp copied to clipboard
Q. How do I customize the layout of the Rating dialog?
you can only use alert dialog theme id unfortunately. inside your xml styles:
<style name="AlertDialogDanger" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="colorAccent">#ff0077</item>
</style>
then call in your activity
RateThisApp.showRateDialog(Site.this,R.style.AlertDialogDanger);
.
Now
showRateDialog(final Context context, AlertDialog.Builder builder)
is a private Method.
.
if above method is public you could use it (edit it in the lib class and build):
create your dialogBuilder and set it's custom view:
View dialogView = inflater.inflate(R.layout.dialogViewLayout , null);
dialogBuilder.setView(dialogView);
.
then call:
showRateDialog(this,dialogBuilder);