0
我有一个长时间的任务需要10/15秒。我想显示一个对话框,或一个视图或其他东西,让用户知道“嘿!我正在为你工作,我在90%”。如何在android中显示等待对话框
其实我有3个布局:currentLayout,progressLayout和resultLayout。从主要活动我有这样的功能:
...
setContentView(R.layout.progressLayout);
SomeLongTask();
setContentView(R.layout.resultLayout);
...
但progressLayout永远不会显示。
这样做的最好方法是什么?
非常有用!谢谢。 – Redax 2010-08-13 13:31:15