Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geniusforapp/fancyDialog
Simple Alert Dialog With Fancy Style
https://github.com/geniusforapp/fancyDialog
Last synced: 1 day ago
JSON representation
Simple Alert Dialog With Fancy Style
- Host: GitHub
- URL: https://github.com/geniusforapp/fancyDialog
- Owner: geniusforapp
- License: apache-2.0
- Created: 2017-03-08T13:44:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T06:07:35.000Z (about 5 years ago)
- Last Synced: 2024-05-31T18:33:47.703Z (15 days ago)
- Language: Kotlin
- Homepage:
- Size: 4.68 MB
- Stars: 423
- Watchers: 15
- Forks: 66
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-github-android-ui - fancyDialog - Android自定义提示框 (对话框)
- awesome-github-android-ui - fancyDialog - Android自定义提示框 (对话框)
README
# FancyDialog
> FancyDialog is a AlertDialog with some fancy styling and them the new version of it is completely build with kotlin
## Add Library
```gradle
repositories {
maven { url 'https://jitpack.io' }
}
implementation 'com.github.geniusforapp:fancyDialog:1.0.2'
```## Code Sample
```kotlin
val dialog = FancyDialogBuilder(this, R.style.CustomDialog)
.withImageIcon(R.drawable.ic_new_message)
.withTitleTypeFace(R.font.roboto_bold)
.withSubTitleTypeFace(R.font.roboto_medium)
.withActionPositiveTypeFace(R.font.roboto_bold)
.withActionNegativeTypeFace(R.font.roboto_bold)
.withTextGravity(CENTER)
.withPanelGravity(END)
.withTitle(R.string.dialog_text_title)
.withSubTitle(R.string.dialog_text_message)
.withPositive(R.string.dialog_action_yes) { view, dialog -> dialog.dismiss() }
dialog.show()
```### Pull requests are welcome!
Feel free to contribute to FancyDialog.
If you've fixed a bug or have a feature you've added, just create a pull request. If you've found a bug, want a new feature, or have other questions, file an issue. I will try to answer as soon as possible.
### Applications using FancyDialog
Please send a pull request if you would like to be added here.
## License
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.