https://github.com/prongbang/smartdialog
Smart Dialog for Android
https://github.com/prongbang/smartdialog
android-dialog dialog dialog-fragment smart-dialog
Last synced: about 1 year ago
JSON representation
Smart Dialog for Android
- Host: GitHub
- URL: https://github.com/prongbang/smartdialog
- Owner: prongbang
- License: mit
- Created: 2020-10-16T09:32:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T05:55:45.000Z (about 5 years ago)
- Last Synced: 2025-03-25T22:52:10.491Z (about 1 year ago)
- Topics: android-dialog, dialog, dialog-fragment, smart-dialog
- Language: Kotlin
- Homepage:
- Size: 251 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smart Dialog for Android
## Preview

## Installation
- Add the following repositories to your project/build.gradle file.
```
repositories {
maven { url 'https://jitpack.io' }
}
```
- Add the following dependency to your project/app/build.gradle file.
```
android {
packagingOptions {
exclude 'META-INF/*.kotlin_module'
}
}
dependencies {
implementation 'com.github.prongbang:smartdialog:1.0.2'
}
```
## Used
```kotlin
SmartDialogFragment.Builder(supportFragmentManager)
.setIcon(SmartIcon.SUCCESS)
.setTitle("SUCCESS")
.setMessage("Camera granted, You can access camera to take a picture")
.setPositiveButton("CLOSE") {
Toast.makeText(this, "Clicked", Toast.LENGTH_SHORT)
.show()
}
.build()
.show()
```