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.
我有一个图像视图,当用户单击它时,它将打开一个包含一些结果的对话框。
但我想在点击 5 秒后显示结果。
我想显示空白对话框直到 5 秒然后我想显示结果?我怎样才能做到这一点 ?非常感谢您。
确保检查处理程序,在单击侦听器后复制此代码。
Handler handler = new Handler(); handler.postDelayed(new Runnable() { public void run() { //whatyouwanttodo } }, 5000); }