Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido-Barnea committed Apr 16, 2022
2 parents c605f28 + aa8df99 commit 3026b63
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ A simple library to help developers create alert dialogs
> Step 2: Add the dependency
```gradle
dependencies {
implementation 'com.github.Ido-Barnea:Dialoger:1.0.9'
implementation 'com.github.Ido-Barnea:Dialoger:1.1.0'
}
```
That's it!

# :fast_forward: Quick use
```kotlin
val dialog = Dialoger(this, Dialoger.TYPE_LOADING)
.setTitle("This is a loading alert...")
.setTitle("This is a loading dialog...")
.setText("This might take a while...")
.setProgressBarColor("#7acf19")
.setDrawable(R.drawable.ic_launcher_background)
.setGravity(Gravity.START)
.show()

// dismiss the dialog after 3 seconds
Expand Down Expand Up @@ -56,12 +58,15 @@ A simple library to help developers create alert dialogs
# :computer: What can I edit in each dialog?
- Both title and content text
- Both title and content color
- Image drawable
- Button text ```(Not visible in loading dialog)```
- Button color ```(Not visible in loading dialog)```
- Progress bar color ```(Only visible in loading dialog)```
- Progress bar indeterminate drawable ```(Only visible in loading dialog)```
- Dialog width
- Dialog background color
- Dialog gravity ```(not including the progress bar)```
- Progress bar gravity
- Whether the dialog will be dismissed on touch outside of it or not

# :briefcase: License
Expand Down

0 comments on commit 3026b63

Please sign in to comment.