Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完善建议 #20

Open
feisher opened this issue Jan 14, 2017 · 10 comments
Open

完善建议 #20

feisher opened this issue Jan 14, 2017 · 10 comments

Comments

@feisher
Copy link

feisher commented Jan 14, 2017

建议修改吐司为静态吐司 在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);
}
替换原此位置代码即可

@yadav-rahul
Copy link
Owner

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

@feisher
Copy link
Author

feisher commented Jan 25, 2017

@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,

@yadav-rahul
Copy link
Owner

@feisher Are you working on this?

@yadav-rahul
Copy link
Owner

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

@nullkk
Copy link

nullkk commented Jan 26, 2018

@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
Copy link

nullkk commented Jan 26, 2018

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

@feisher
Copy link
Author

feisher commented Jan 27, 2018

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

@nullkk
Copy link

nullkk commented Jan 27, 2018

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

@gzehua
Copy link

gzehua commented Jun 18, 2018

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

@feisher
Copy link
Author

feisher commented Jun 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants