Android-RateThisApp icon indicating copy to clipboard operation
Android-RateThisApp copied to clipboard

Q. How do I customize the layout of the Rating dialog?

Open VisheshVadhera opened this issue 8 years ago • 1 comments

VisheshVadhera avatar Oct 04 '16 09:10 VisheshVadhera

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);

codecsand avatar Jan 08 '17 17:01 codecsand