开源软件名称:ToastUtils
开源软件地址:https://gitee.com/mengpeng920223/ToastUtils
开源软件介绍:
版本计划- v1.0.0 添加各式各样的toast,并提供自定义toast
- v1.1.0 给不同种类的toast加上合适的动画,并提供自定义动画
- v1.2.0 未完待续...
使用方式Step 1. Add the JitPack repository to your build file allprojects { repositories { ... maven { url 'https://jitpack.io' } }} Step 2. Add the dependency dependencies { compile 'com.github.mengpeng920223:ToastUtils:v1.0.3'} 初始化 ToastUtils.getInstance().initToast(context); 成功ToastToastUtils.onSuccessShowToast( "成功toast") 失败ToastToastUtils.onErrorShowToast( "失败toast") 默认ToastToastUtils.onDefaultShowToast( "默认toast") 默认没有icon ToastToastUtils.onDefaultWithoutIconShowToast( "默认没有 icon toast") Warn ToastToastUtils.onWarnShowToast( "Warn toast") Info ToastToastUtils.onInfoShowToast( "Info toast") 自定义Toast(建议看源码,然后选择构建方式)ToastUtils.onShowToast(...) |
请发表评论