TastyToast icon indicating copy to clipboard operation
TastyToast copied to clipboard

完善建议

Open feisher opened this issue 8 years ago • 10 comments

建议修改吐司为静态吐司 在TastyToast类中修改 代码如下:

static Toast toast = null; //Toast的对象! public static Toast makeText(Context context, String msg, int length, int type) { if (toast==null) { toast= new Toast(context); } 替换原此位置代码即可

feisher avatar Jan 14 '17 03:01 feisher

@feisher LGTM. Are you interested in implementing this part?

yadav-rahul avatar Jan 14 '17 04:01 yadav-rahul

@yadav-rahul Yes, I am very interested, but I am sorry that my Github is not use good, I have to modify their own local library, very few online modification,

feisher avatar Jan 25 '17 13:01 feisher

@feisher Are you working on this?

yadav-rahul avatar Feb 24 '17 11:02 yadav-rahul

@feisher If you are working on this one then please update your progress regarding it.

yadav-rahul avatar Mar 24 '17 14:03 yadav-rahul

@yadav-rahul Thank you for this libs I found clicking the same button multiple times Will appear many times toast, He was revised , toast Singleton mode.

wx20180126-152629 2x

nullkk avatar Jan 26 '18 07:01 nullkk

@feisher 老哥 多次点击 还是会多次出现 能不能只出现一次,他这个 toast搞成了单例, 但是view 不能只绘制一次吧 ?

nullkk avatar Jan 26 '18 07:01 nullkk

@nullkk改写后的效果是这样,是为了 保证实时显示的是最新的toast提示,肯定需要二次绘制的,不然怎么更新内容 mark

feisher avatar Jan 27 '18 00:01 feisher

@feisher 我把layout的view也写成单列了. 每次调用判断是否为空,不为空直接showview.这样只加载一次view, 但是会有问题 比如我点了error 类型 set10个文字 在点info类型set 3个文字 view是只加载了一次 但是文字大小都设置不一样.这个view就不会刷新..

nullkk avatar Jan 27 '18 18:01 nullkk

Android高版本中关闭notification权限,还能显示吗?

gzehua avatar Jun 18 '18 07:06 gzehua

@gzehua toast和通知权限无关,完全不受影响的

feisher avatar Jun 23 '18 05:06 feisher