Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vimalcvs/material-smart-rating
😍⭐⭐Material Smart Rating App - An Android library that encourages users to rate the app on Google Play.⭐⭐😘
https://github.com/vimalcvs/material-smart-rating
android context dialog feedback feedback-form gradle icon java library material material-design material-smart-rating material-ui nth rate rating rating-dialog smart user-rates user-rating
Last synced: 2 months ago
JSON representation
😍⭐⭐Material Smart Rating App - An Android library that encourages users to rate the app on Google Play.⭐⭐😘
- Host: GitHub
- URL: https://github.com/vimalcvs/material-smart-rating
- Owner: vimalcvs
- License: apache-2.0
- Created: 2020-09-20T16:05:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T13:55:19.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T03:44:07.695Z (9 months ago)
- Topics: android, context, dialog, feedback, feedback-form, gradle, icon, java, library, material, material-design, material-smart-rating, material-ui, nth, rate, rating, rating-dialog, smart, user-rates, user-rating
- Language: Java
- Homepage: https://www.technovimal.in/how-to-start-a-blog.html
- Size: 32.6 MB
- Stars: 38
- Watchers: 2
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Material Design3 Smart Rating for Android
[![Android CI](https://github.com/prathameshmm02/ThemeEngine/actions/workflows/android.yml/badge.svg)](https://github.com/prathameshmm02/ThemeEngine/actions/workflows/android.yml)
[![](https://jitpack.io/v/vimalcvs/Material-Smart-Rating.svg)](https://jitpack.io/#vimalcvs/Material-Smart-Rating)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)Material3 Smart app rate dialog for Android which takes user rating into consideration. If the user rates the app below the defined threshold rating, the dialog will change into a feedback form. Otherwise, It will take the user to the Google Play Store.
## Screenshots
### Themes
| Light | Dark | Rate | Feedback |
|:---:|:---:|:---:|:---:|
| | | | |Note: This library best support ```Theme.Material3.DayNight```.
## Features
- Auto fetches the app icon to appear on top of the dialog
- Make the dialog appear on a defined app session
- Opens Feedback form if the user rates below the minimum threshold
- Extracts the accent color from your app's theme
- Customizable title, positive button and negative button texts
- Customizable button colors and backgrounds
- Override dialog redirection to Google Play or Feedback form according to your needsIf you want the dialog builder method and move the code to the `setOnClickListener()` method of your Activity class.
## InstallationAdd jitpack in your root build.gradle at the end of repositories:
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
```
Step 2. Add the dependency```
dependencies {
implementation 'com.github.vimalcvs:Material-Smart-Rating:6.0.0'}
```## How to use
Use the dialog as it is `setOnClickListener()` Just like MainActivity.java
```javaButton rating_app = findViewById(R.id.rating_app);
rating_app.setOnClickListener(v -> {
//Rating
FragmentManager fragmentManager = getSupportFragmentManager();
MaterialRating feedBackDialog = new MaterialRating();
feedBackDialog.show(fragmentManager, "rating");
});
Button feedback_app = findViewById(R.id.feedback_app);
feedback_app.setOnClickListener(v -> {
//Feedback
FragmentManager fragmentManager = getSupportFragmentManager();
MaterialFeedback materialFeedback = new MaterialFeedback("[email protected]");
materialFeedback.show(fragmentManager, "feedback");
});
```## Credits
This project was initiated by **TechnoVimal.in**. You can contribute to this project by submitting issues or/and by forking this repo and sending a pull request.
![](https://mlsvormsouvm.i.optimole.com/DV0GLTY-FqZU1jKu/w:auto/h:auto/q:auto/https://www.technovimal.in/wp-content/uploads/2019/09/technovimal_moblie_logo_250x40-1.png)
Follow us on:
[![Facebook](http://codemybrainsout.com/files/img/fb.png)](https://www.facebook.com/vimalcvs) [![Twitter](http://codemybrainsout.com/files/img/tw.png)](https://twitter.com/vimalvishwakar6)
Author: [Vimal K. Vishwakarma](https://github.com/vimalcvs)
# License
```
Copyright (C) 2022 Code Mr. Vimal K. VishwakarmaLicensed 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 athttp://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.
```