Skip to content

The android library show dialog rate on app and on Google Play Store

License

Notifications You must be signed in to change notification settings

hu2di/RateDialog

Repository files navigation

RateDialog

The android library show dialog rate on app and on Google Play Store

Screenshot

SDK Support

Support from SDK version 14 onwards

Download

JitPack:
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
    compile 'com.github.hu2di:RateDialog:1.0.4'
}

Example

Add in your activity to show dialog rate

new MyRate(context, 
	new RateListener() {
                    @Override
                    public void oneStar() {                        
                    }

                    @Override
                    public void twoStars() {                        
                    }

                    @Override
                    public void threeStars() {                        
                    }

                    @Override
                    public void fourStars() {                        
                    }

                    @Override
                    public void fiveStars() {                        
                    }
                },
	R.mipmap.ic_launcher)
    .show();

Change language dialog rate

new MyRate(context, 
	new RateListener() {
                    @Override
                    public void oneStar() {                       
                    }

                    @Override
                    public void twoStars() {                      
                    }

                    @Override
                    public void threeStars() {                        
                    }

                    @Override
                    public void fourStars() {                        
                    }

                    @Override
                    public void fiveStars() {                    
                    }
                },
	"Comment aimeriez-vous cette application?", 
	R.mipmap.ic_launcher)
    .show();

About