简体   繁体   English

带有背景的Android Toast小部件

[英]Android Toast widget with background

I'd like to know if there is a simple way to darken the app background when calling the Toast widget. 我想知道在调用Toast小部件时是否有一种简单的方法可以使应用背景变暗。

When activated, the Toast widget would be above a dark and transparent background and that background would disappear as soon as the Toast widget disappear. 激活后,Toast小部件将位于深色透明背景之上,并且只要Toast小部件消失,该背景就会消失。

Thanks in advance, 提前致谢,

Same story as you asked here Android Toast widget disable app buttons 与您在此处询问的故事相同Android Toast小部件禁用应用程序按钮

Set the background -> call the toast -> start a timer : when timer = finished set background back 设置背景->调用烤面包->启动计时器:当计时器=完成时,将背景设置回

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM