Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Jun 6, 2020
1 parent ac7d100 commit d120faa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ dependencies {

<h3>Custom Dialog</h3>

```diff
```java
...
new NordanAlertDialog.Builder(this)
.setAnimation(Animation.POP)
.isCancellable(false)
Expand All @@ -31,10 +32,11 @@ dependencies {
.onPositiveClicked(() -> {/* Do something here */})
.onNegativeClicked(() -> {/* Do something here */})
.build().show();
...
```
<h3>Minimal Dialog</h3>

```diff
```java
new NordanAlertDialog.Builder(this)
.setTitle("Dialog Title")
.setMessage("Your message")
Expand All @@ -44,7 +46,7 @@ dependencies {
```
<h3>Dialog with DialogType</h3>

```diff
```java
new NordanAlertDialog.Builder(this)
.setDialogType(DialogType.SUCCESS)
.setAnimation(Animation.SLIDE)
Expand All @@ -58,7 +60,7 @@ dependencies {

<h3>Dialog with Gif icon</h3>

```diff
```java
new NordanAlertDialog.Builder(this)
.setAnimation(Animation.SLIDE)
.isCancellable(false)
Expand All @@ -74,7 +76,7 @@ dependencies {

<h1>Nordan Loading Dialog</h1>

```diff
```java
NordanLoadingDialog.createLoadingDialog(this,"Loading...").show();
```
![Loading Dialog](https://github.com/Dan629pl/NordanMaterialDialog/blob/master/img/loading.gif)
Expand Down

0 comments on commit d120faa

Please sign in to comment.