https://github.com/khan-mujeeb/custom-toast-library
android library to make toast
https://github.com/khan-mujeeb/custom-toast-library
android-library android-studio java toast toast-notifications
Last synced: 11 months ago
JSON representation
android library to make toast
- Host: GitHub
- URL: https://github.com/khan-mujeeb/custom-toast-library
- Owner: khan-mujeeb
- Created: 2022-10-16T06:16:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T08:49:02.000Z (over 3 years ago)
- Last Synced: 2025-04-05T07:42:13.338Z (about 1 year ago)
- Topics: android-library, android-studio, java, toast, toast-notifications
- Language: Java
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom-Toast-Library
## How to get a Git project into your build:
- **Step 1. Add to your build file**
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
- **Step 2. Add the dependency**
```
dependencies {
implementation 'com.github.khan-mujeeb:Custom-Toast-Library:v1.0.0'
}
```
### Toast with short time durarion
```java
CustomToast.simpleToast(this,message);
```
### Toast with custom time durarion
```java
int time_duration;
time_duration = 0; // for LENGTH_SHORT
time_duration = 1; // for LENGTH_LONG
CustomToast.simpleToast(this,message,time_duration);
```