Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamhabib/rating-request
RatingRequest library is a simple android dialog for request rating and review.
https://github.com/iamhabib/rating-request
Last synced: 3 months ago
JSON representation
RatingRequest library is a simple android dialog for request rating and review.
- Host: GitHub
- URL: https://github.com/iamhabib/rating-request
- Owner: iamhabib
- Created: 2016-10-31T20:28:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T20:34:32.000Z (about 8 years ago)
- Last Synced: 2024-06-16T05:38:20.045Z (5 months ago)
- Language: Java
- Size: 102 KB
- Stars: 28
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - rating-request - 简单的Android对话框 (RatingView)
README
# Rating Request [ ![Download](https://api.bintray.com/packages/osongae2/maven/rating-request/images/download.svg) ](https://bintray.com/osongae2/maven/rating-request/_latestVersion)
-------------------RatingRequest library is a simple android dialog for request rating and review.
##Usage
-----------Add below line in app ```build.gradle```
```gradle
dependencies {
compile 'com.iamhabib:rating-request:1.0.1'
}
```##Code snippets
---------------Easy way to show the dialog:
```groovy
RatingRequest.with(this)
.scheduleAfter(7) // invoke when later button click, default 5 days
.agreeButtonText("Sure!")
.laterButtonSeletor(R.drawable.button_accept)
.laterButtonText("Later")
.doneButtonText("Already Done")
.backgroundResource(R.color.colorPrimary)
.message("Are you enjoying our app?\n Please give us a review")
.listener(new RatingRequest.ClickListener() {
@Override
public void onAgreeButtonClick() {}
@Override
public void onDoneButtonClick() {
Toast.makeText(getApplicationContext(), "Done", Toast.LENGTH_LONG).show();
}@Override
public void onLaterButtonClick() {}
})
.cancelable(false) // default true
.delay(10 * 1000) // after 10 second dialog will be shown, default 1000 milliseconds
.register();
```## Screenshot
----------------
![Screenshot_20161101-001334.png](https://bitbucket.org/repo/eq6oeq/images/3861935034-Screenshot_20161101-001334.png)##License
Copyright 2016 Habibur Rahman
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 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.