Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VisheshVadhera opened this issue Oct 4, 2016 · 1 comment
Open

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

VisheshVadhera opened this issue Oct 4, 2016 · 1 comment

Comments

@VisheshVadhera
Copy link

No description provided.

@codecsand
Copy link

codecsand commented Jan 8, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants