An android library to display a rate dialog in an easy way.
You can see all the library releases here.
- Roboto font
- Multilanguage
- Easy configuration
- Fully material designed
RateDialog currently supports the following languages:
- English (default)
- Spanish
- German
- French
- Italian
- Dutch
- Portuguese
- Brazilian
- Russian
- Polish
- Turkish
Translate this library into your language here.
Add this to your root build.gradle file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Now add the dependency to your app build.gradle file:
implementation 'com.github.marcoscgdev:RateDialog:1.0.7'
Show the dialog each 3 days and each 7 launches (default config):
RateDialog.init(this);
Shows the dialog with custom config:
RateDialog.init(this, 2, 0); // daysUntilPrompt, launchesUntilPrompt
You can also get the default config values:
RateDialog.DEFAULT_DAYS_UNTIL_PROMPT
RateDialog.DEFAULT_LAUNCHES_UNTIL_PROMPT
Show the dialog instantly:
RateDialog.showDialog(this);
RateDialog rateDialog = new RateDialog(this, "custom_rate_dialog_key");
rateDialog.init();
You can also use custom config
RateDialog rateDialog = new RateDialog(this, "custom_rate_dialog_key", daysUntilPrompt, launchesUntilPrompt);
Show the custom dialog instantly:
RateDialog rateDialog = new RateDialog(this, "custom_rate_dialog_key");
rateDialog.showDialog();
NOTE: Use a different dialog key for each dialog instance.
Custom dialog strings (just override it):
<string name="rate_dialog_title">Rate %s.</string>
<string name="rate_dialog_message">If you enjoy using %s, please help us by rating it. It only takes a few seconds!</string>
<string name="rate_dialog_action_rate">Rate</string>
<string name="rate_dialog_action_never">No, thanks</string>
<string name="rate_dialog_action_later">Later</string>
<string name="rate_dialog_thank_you">Thank you!</string>
See the sample project to clarify any queries you may have.
Copyright 2020 Marcos Calvo García
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Hey dude! Help me out for a couple of 🍻!