改变你的Toast 样式!
2017-03-03 本文已影响136人
lovesosoi
作者ivm
更详细的第三方库http://www.jianshu.com/p/c73cb16b6efc
项目中,还在被经理说,
你的弹出的窗口为什么这么low!
你的toast 为什么这么丑!
为什么不自己封装一个toast!
普遍的我们,都会用这样一个Toast 工具类能做到 弹出一个toast 在弹出下一个toast 时,及时的将上一个覆盖。但是样子没有变
![](https://img.haomeiwen.com/i3749707/39c7f2d0711a737b.png)
那么如下的toast ,样式就好了很多是不是感觉好了很多
![](http://upload-images.jianshu.io/upload_images/3749707-6b091c03e71c7d58.png)
接下来,说说用法(及其简单):
github:https://github.com/GrenderG/Toasty
第一步:
![](http://upload-images.jianshu.io/upload_images/3749707-ea4ac9a2ddc30ecb.png)
第二步:
![](http://upload-images.jianshu.io/upload_images/3749707-c68c880330883286.png)
完事,大功告成。有没有很简单
什么,这个不够用!!
好吧。还有一个自定义属性挺多的一个toast 第三方
github:
图样:
![](http://upload-images.jianshu.io/upload_images/3749707-a4014fe55a8c5035.png)
有没有很好看!!
下面放使用方法
第一步:
![](http://upload-images.jianshu.io/upload_images/3749707-2c29b387e3b57d52.png)
第二步:
![](http://upload-images.jianshu.io/upload_images/3749707-7186b1347ee41638.png)
或者
![](http://upload-images.jianshu.io/upload_images/3749707-d7f4d2db4dec2b50.png)
喜欢哪种就用哪种!
自定义性非常强!
已将Demo 传到github
https://github.com/lvm0306/Toastly
欢迎关注我的公众号:
![](http://upload-images.jianshu.io/upload_images/3749707-f29922458635f3ba.png)