๐ฑ Android Library to implement Rich, Beautiful Toasts for your project with all Guidelines. Easy to use.
TastyToast library is built to implement fancy toasts in any Android app. This API will be useful to create rich, animated, beautiful Toasts in Android app easily.
- AndroidX
- Minimum SDK API 19
Implementation of TastyToast ๐ library is so easy. You can check /app directory for demo. Let's have look on basic steps of implementation. In this demo, we will populate the menu contents by a menu resource file.
In build.gradle
of app module, include these dependencies.
dependencies
{
// TastyToast library
implementation 'dev.atharvakulkarni:TastyToast:1.1'
}
All the programmatic way of implementation of TastyToast library is here.
General syntax of TastyToast : TastyToast.success(context,"text",duration,shape,android icon);
duration : TastyToast.LENGTH_SHORT
TastyToast.LENGTH_LONG
shape : TastyToast.SHAPE_ROUND
TastyToast.SHAPE_RECTANGLE
android icon : true
false
Position of toast can also be set by using the function POSITION as follows :
TastyToast.success(this,"This is a Success Toast",TastyToast.LENGTH_LONG,TastyToast.SHAPE_ROUND,false) .setPosition(POSITION.TOP);
- TOP
- BOTTOM
- CENTER
- LEFT
- RIGHT
- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
Please fork this repository and contribute back using pull requests.
If you like this library, please do share with someone who need it.
Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed .
Don't forget to star โญ the repo it motivates me to share more open source
If this project help you reduce time to develop, you can give me a cup of coffee :) or dinner ๐ ๐ will also do ๐
Project is published under the Apache-2.0 license. Feel free to clone and modify repo as you want, but don't forget to add reference to authors :)
Copyright 2020 Atharva Kulkarni
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.
`