Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hu2di authored Nov 15, 2017
1 parent c15cf44 commit db1f501
Showing 1 changed file with 49 additions and 3 deletions.
52 changes: 49 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,65 @@ allprojects {
Step 2. Add the dependency
```groovy
dependencies {
compile 'com.github.hu2di:RateDialog:1.0.1'
compile 'com.github.hu2di:RateDialog:v1.0.2'
}
```

### Example
Add in your activity to show dialog rate
```java
new MyRate(context, R.mipmap.ic_launcher)
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
```java
new MyRate(context, "Comment aimeriez-vous cette application?", R.mipmap.ic_launcher, "Merci")
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,
"Merci")
.show();
```

Expand Down

0 comments on commit db1f501

Please sign in to comment.