Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muhammedelsami/toastoy
Custom Toast library
https://github.com/muhammedelsami/toastoy
android android-library kotlin library toast
Last synced: 5 days ago
JSON representation
Custom Toast library
- Host: GitHub
- URL: https://github.com/muhammedelsami/toastoy
- Owner: muhammedelsami
- Created: 2023-01-13T14:50:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T08:21:13.000Z (over 1 year ago)
- Last Synced: 2023-06-19T11:02:57.961Z (over 1 year ago)
- Topics: android, android-library, kotlin, library, toast
- Language: Kotlin
- Homepage: https://www.muhammedelsami.com
- Size: 430 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toastoy
## Dependency
[![](https://jitpack.io/v/muhammedelsami/Toastoy.svg)](https://jitpack.io/#muhammedelsami/Toastoy)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/Apache-2.0)
![](https://img.shields.io/github/forks/muhammedelsami/Toastoy?label=Forks)
![](https://img.shields.io/github/stars/muhammedelsami/Toastoy?label=Stars&color=9cf)
![](https://visitor-badge.glitch.me/badge?page_id=muhammedelsami.Toastoy)Add this in your root build.gradle file (or settings.gradle file):
```gradle
repositories {
maven { url 'https://jitpack.io' }
}
```
Add this to your app build.gradle file:```gradle
dependencies {
implementation 'com.github.muhammedelsami:Toastoy:TAG'
}
```## Usage
To display a default Toast:
``` kotlin
Toastoy.showDefaultToast(this,"This is a default toast !")
```
To display a success Toast:``` kotlin
Toastoy.showSuccessToast(this, "This is a success toast !")
```To display the error Toast:
``` kotlin
Toastoy.showErrorToast(this,"This is an error toast !")
```To display an info Toast:
``` kotlin
Toastoy.showInfoToast(this,"This is an info toast !")
```
To display a warning Toast:``` kotlin
Toastoy.showWarningToast(this,"This is a warning toast !")
```## Coffee
If this project help you reduce time to develop, you can give me a cup of coffee :)## 🔗 Links
Connect with me:
[![image](https://img.shields.io/badge/website-D14836?style=for-the-badge&logo=web&logoColor=white)](https://www.muhammedelsami.com/)
[![image](https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white)](https://instagram.com/muhammed_elsami)
[![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://www.youtube.com/channel/UComlhYSCEga40FwSv8MjVsw)
[![image](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white)](mailto:[email protected])
[![image](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/muhammed-el%C5%9Fami/)## License
[MIT](https://choosealicense.com/licenses/mit/)
```
Copyright 2023 Muhammed ElÅŸamiLicensed 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.