Custom Toast library for Android

Toastoy

Dependency

Add this in your root build.gradle file (or settings.gradle file):

repositories {  
 maven { url 'https://jitpack.io' }  
} 

Add this to your app build.gradle file:

dependencies {  
 implementation 'com.github.muhammedelsami:Toastoy:TAG'
}  

Usage

To display a default Toast:

Toastoy.showDefaultToast(this,"This is a default toast !")

To display a success Toast:

Toastoy.showSuccessToast(this, "This is a success toast !")

To display the error Toast:

Toastoy.showErrorToast(this,"This is an error toast !")

To display an info Toast:

Toastoy.showInfoToast(this,"This is an info toast !")

To display a warning Toast:

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:

License

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.



GitHub

View Github