• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Angtrim/Android-Five-Stars-Library: Android Five Stars Library is a small librar ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Angtrim/Android-Five-Stars-Library

开源软件地址(OpenSource Url):

https://github.com/Angtrim/Android-Five-Stars-Library

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

Android Five Stars Library

Android Five Stars Library is a small library that helps developers add a "Rate My App" dialog to their applications.

It's called "Five Stars" because the dialog has a different behaviour based on the rating given by the user.

If the user gives 4 or 5 stars out of 5, the user is sent to the Google Play Store page to give an actual rating.

If the user gives 3 or less stars out of 5, the user is asked to send a bug report to the developer.

If "Force Mode" is activated, when the user selects 4/5 stars, he is immediately redirected to the Play Store, without asking for a confirm. :D

Preview

preview

Installation

To use the library, first include it your project using Gradle

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

dependencies {
        compile 'com.github.Angtrim:Android-Five-Stars-Library:v3.1'
}

How to use

To use this library just add this snippet in the onCreate of your activity.

The showAfter(int numbersOfAccess) method tells the library after how many access the dialog has to be shown.

Example:

        FiveStarsDialog fiveStarsDialog = new FiveStarsDialog(this,"[email protected]");
        fiveStarsDialog.setRateText("Your custom text")
                .setTitle("Your custom title")
                .setForceMode(false)
                .setStarColor(Color.YELLOW)
                .setUpperBound(2) // Market opened if a rating >= 2 is selected
                .setNegativeReviewListener(this) // OVERRIDE mail intent for negative review
                .setReviewListener(this) // Used to listen for reviews (if you want to track them )
                .showAfter(0);

Features

The library is very simple, just note that :

  • When the user tap OK or NEVER the dialog will not show again
  • When the user tap NOT NOW the access counter will be reset and the dialog will be shown again after the selected times.

Used by

If you use my library, please tell me at angelo.gallarello [at] gmail [dot] com. So I can add your app here!

License

Do what you want with this library.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap