Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mjn1369/PrettyDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mjn1369 committed Mar 3, 2018
2 parents db63303 + 6d9bb0e commit 0853630
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Add this to your app build.gradle:

```
dependencies {
compile 'com.github.mjn1369:prettydialog:1.0.0'
compile 'com.github.mjn1369:prettydialog:1.0.1'
}
```

Expand Down Expand Up @@ -160,6 +160,12 @@ new PrettyDialog(this)
.setAnimationEnabled(true)
```

- Set dialog gravity:

```
.setGravity(Gravity.BOTTOM)
```

## Functions

| Functions | Description | Default |
Expand All @@ -175,6 +181,11 @@ new PrettyDialog(this)
| addButton(String,int,int,PrettyDialogCallback) | adds button with text,text color,background color and callback| |
| setTypeface(Typeface) | sets typeface for all texts | |
| setAnimationEnabled(boolean) | enables or disables dialog animation| Enabled |
| setGravity(int) | sets the dialog's gravity (TOP, BOTTOM, CENTER,...)| Gravity.CENTER |

## Changelog
v1.0.1:
- Added "setGravity(int gravity)" method

cheers :beers:

Expand Down

0 comments on commit 0853630

Please sign in to comment.