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

https://github.com/androidwithrossyn/easytoast

EasyToast is a lightweight Kotlin/Java class designed to simplify the use of Toast messages in Android applications.
https://github.com/androidwithrossyn/easytoast

toast toast-message toast-notifications toaster

Last synced: 6 months ago
JSON representation

EasyToast is a lightweight Kotlin/Java class designed to simplify the use of Toast messages in Android applications.

Awesome Lists containing this project

README

          

# EasyToast

[![](https://jitpack.io/v/AndroidWithRossyn/easytoast.svg)](https://jitpack.io/#AndroidWithRossyn/easytoast)
[![Medium](https://img.shields.io/badge/Medium-12100E?logo=medium&logoColor=white)](https://rohitrajkhorwal.medium.com/android-toast-utilities-a-better-way-to-handle-toast-messages-rohitrajkhorwal-e16f555238ac)

EasyToast is a lightweight Kotlin/Java class designed to simplify the use of Toast messages in
Android applications. It was initially created for personal use but is now shared publicly to help
others.

### Add JitPack Repository in `settings.gradle.kts`:
```kotlin
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://jitpack.io") // Add JitPack
}
}
```

### Add the Dependency in `build.gradle.kts`:
```kotlin
dependencies {
implementation("com.github.AndroidWithRossyn:easytoast:VERSION")
}
```

## Features

- Simple and easy-to-use.
- No external dependencies required.
- Can be used directly by copying the class into your project.

## Usage

1. **Include the class in your project:**
- Copy and paste the `EasyToast.kt` file into your Android project.

2. **Example:**
```kotlin
showToast("This is a Toast!")
```

### Find this Repository useful? ❤️

Support it by joining stargazers for this repository. ⭐

Also, [follow me on GitHub](https://github.com/AndroidWithRossyn/) for my next creations! 🤩

### License

```
Copyright 2024 Rossyn

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.
```