Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 :)

Buy Me A 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ÅŸami

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 at

http://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.