Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何AlertDialog以编程方式检查屏幕上是否有任何 s?
AlertDialog
您可以使用myAlertDialog.isShowing();它来获取它是否正在显示的布尔值,然后使用该信息执行某些操作。不完全是您正在寻找的东西,但可能是一个漫长而复杂的工作......?
myAlertDialog.isShowing();
AFAIK,这不能在 Android 中完成。