hotchemi / Android-Rate

Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.
http://hotchemi.github.io/Android-Rate
MIT License
724 stars 216 forks source link

Use android.support.v7.app.AlertDialog instead of android.app.AlertDialog #85

Closed romainpiel closed 8 years ago

romainpiel commented 8 years ago

Between honeycomb and lollipop, the AlertDialog will use the default theme instead of the AppCompat defined theme. It will basically fall back to Holo. It would be nice if the library was using android.support.v7.app.AlertDialog instead of android.app.AlertDialog and add a way to tweak the theme for all versions (it's currently locked for lollipop and above for some reason https://github.com/hotchemi/Android-Rate/blob/209f94717a8af7ed6d6095d5dfb32d27f5ec73ca/library/src/main/java/hotchemi/android/rate/Utils.java#L22)

hotchemi commented 8 years ago

Thanks and sorry for the late. Well, would u be able to send a pull request? If not, I'm gonna fix that.

mudar commented 8 years ago

I've sent a pull request that uses android.support.v7.app.AlertDialog and adds

AppRate.with(activity).setDialogStyle(R.style.MyCustomStyle)

the custom style addition is based on previous PR by @swellner

sajid-hussain commented 7 years ago

i have following error failed to resolve com.github.hotchemi:android-rate:{latest.version}

AlexanderLS commented 6 years ago

Hi @sajid-hussain ,

Try to use

dependencies {
    implementation "com.vorlonsoft:androidrate:1.2.0"
}