Android的小部件吐司禁用应用程序按钮 [英] Android Toast widget disable app buttons

查看:194
本文介绍了Android的小部件吐司禁用应用程序按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方式,只要面包小部件被调用,只要它是显示在屏幕上,所有的应用程序按钮都暂时被禁止。

I'd like to know if there is a way that, as soon as the Toast widget is called and as long it is visible on screen, all the app buttons are temporary disabled.

先谢谢了。

推荐答案

我觉得你应该创建一个定时器,当你调用烤面包和禁用按钮时,计时器结束启用按钮。

I think you should create a timer and disable the buttons when you call the toast and when the timer is finished enable the buttons.

这篇关于Android的小部件吐司禁用应用程序按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆